@cling-se/widget 0.9.13 → 0.9.15
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-228b3577.js → AddClientCallout-ab49f62b.js} +5 -5
- package/dist/{AnswerModal-8d56e27b.js → AnswerModal-2fde5937.js} +244 -239
- package/dist/{AttachmentItem-c351e46f.js → AttachmentItem-e54af2bb.js} +3 -3
- package/dist/{BaseDatePicker-455a8e63.js → BaseDatePicker-cb470a9e.js} +1 -1
- package/dist/{BaseInput-6b0cdce2.js → BaseInput-3d9f4279.js} +1 -1
- package/dist/{BaseUpload-53bb3574.js → BaseUpload-26e05a5c.js} +18 -18
- package/dist/{BlockMedia-7f55be7a.js → BlockMedia-8cded5ef.js} +1 -1
- package/dist/{CCallout-357061be.js → CCallout-a561eca4.js} +2 -2
- package/dist/{CDropdownItem-18010a08.js → CDropdownItem-df2fa4e1.js} +63 -61
- package/dist/{CField-05874972.js → CField-6545c8d4.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-cf8cf3bf.js → CSlider.vue_vue_type_style_index_0_lang-a27aef22.js} +1 -1
- package/dist/{ClientAutocomplete-80568a20.js → ClientAutocomplete-6d25f1ac.js} +2 -2
- package/dist/{ClientModal-7504abd0.js → ClientModal-f954d9e4.js} +4 -4
- package/dist/{ColorPicker-6ce6c99f.js → ColorPicker-b81d49dc.js} +28 -28
- package/dist/{CompanyModal-14c95452.js → CompanyModal-3c0542ed.js} +3 -3
- package/dist/{ContentWrapper-2af616a6.js → ContentWrapper-023e7d2e.js} +15 -13
- package/dist/{CoverBlockSettings-16e69c0f.js → CoverBlockSettings-bf46f7c3.js} +10 -9
- package/dist/{DocAnswer-4c60bdb2.js → DocAnswer-9e30ed6c.js} +4 -4
- package/dist/{DocForm-88aad3f9.js → DocForm-d0be2afd.js} +510 -597
- package/dist/{DocFormSend-7822495a.js → DocFormSend-2257bdb8.js} +17 -17
- package/dist/DocLinks-49de3d35.js +38 -0
- package/dist/{DocModalBase-cc16308d.js → DocModalBase-2e474321.js} +1 -1
- package/dist/{DocPrint-ab80350b.js → DocPrint-b31bfe3e.js} +1 -1
- package/dist/{DocReceipt-a418995c.js → DocReceipt-b28fa3e6.js} +1 -1
- package/dist/{DocSendReminder-604537a5.js → DocSendReminder-04ff970b.js} +1 -1
- package/dist/{DocTextEditor-4c3a9dda.js → DocTextEditor-a4dc3100.js} +1498 -1480
- package/dist/{DocTimeline-f528fe03.js → DocTimeline-c1078cae.js} +1 -1
- package/dist/{DocumentClient-63eee0be.js → DocumentClient-0f32e0c9.js} +6 -6
- package/dist/{DocumentLayout-7f21170a.js → DocumentLayout-9d7c3945.js} +95 -95
- package/dist/{DocumentLogotype-342699d5.js → DocumentLogotype-53f70c53.js} +3 -3
- package/dist/{EmbedInput-838658e0.js → EmbedInput-d69ce4f8.js} +2 -2
- package/dist/{EmbedSettings-4861e515.js → EmbedSettings-2ec76322.js} +3 -3
- package/dist/{ErrorCallout-3c335312.js → ErrorCallout-73785234.js} +1 -1
- package/dist/{FilePreviewModal-36890f6f.js → FilePreviewModal-109c7b33.js} +5 -5
- package/dist/{HeaderSettings-c60b567b.js → HeaderSettings-3d83ccfc.js} +18 -17
- package/dist/{ImageSelectModal-364cb7f3.js → ImageSelectModal-75c53e98.js} +9 -9
- package/dist/{ImageUploadWrapper-3f97caf0.js → ImageUploadWrapper-decbb774.js} +2 -2
- package/dist/{Index-e8bd9682.js → Index-0ee59b64.js} +4 -4
- package/dist/{Index-5e5e9eea.js → Index-10bfb47a.js} +2 -2
- package/dist/{Index-54dae7d5.js → Index-155458e8.js} +6 -6
- package/dist/{Index-dad75b77.js → Index-1b28d760.js} +8 -8
- package/dist/{Index-c4a96084.js → Index-1ce1aa40.js} +3 -3
- package/dist/{Index-87e1bf30.js → Index-226c110a.js} +2 -2
- package/dist/{Index-4d066329.js → Index-22d94abb.js} +1 -1
- package/dist/{Index-ab8a049c.js → Index-30e95a66.js} +5 -5
- package/dist/{Index-39588910.js → Index-47fb4f85.js} +4 -4
- package/dist/{Index-043d9b1b.js → Index-49b4cd87.js} +2 -2
- package/dist/{Index-622f4488.js → Index-50af499a.js} +6 -6
- package/dist/{Index-d0572db7.js → Index-5469b8ea.js} +9 -9
- package/dist/{Index-e1fa12f4.js → Index-55e3cefd.js} +4 -4
- package/dist/{Index-4d75a98f.js → Index-5ec00453.js} +15 -13
- package/dist/{Index-236b16cb.js → Index-63310172.js} +16 -14
- package/dist/{Index-df63e9b1.js → Index-73c44a65.js} +2 -2
- package/dist/{Index-61044ea1.js → Index-837d1c1e.js} +18 -16
- package/dist/{Index-ab549b7b.js → Index-a1f511d2.js} +2 -2
- package/dist/{Index-143c8249.js → Index-a463bce9.js} +4 -4
- package/dist/{Index-eb677c16.js → Index-be17e087.js} +3 -3
- package/dist/{Index-81aebe47.js → Index-bff9c5af.js} +8 -8
- package/dist/{Index-2d530ba9.js → Index-c6cfa7d2.js} +25 -25
- package/dist/{Index-933d777b.js → Index-cc254b04.js} +4 -4
- package/dist/{Index-31c43501.js → Index-ce221abf.js} +4 -4
- package/dist/{Index-c4da8059.js → Index-d0baff52.js} +15 -13
- package/dist/{Index-68d33a7a.js → Index-d3807403.js} +2 -2
- package/dist/{Index-7ae67a69.js → Index-d937a089.js} +2 -2
- package/dist/{Index-c3e9f61e.js → Index-d9879953.js} +4 -4
- package/dist/{Index-a954fa0e.js → Index-dca7a282.js} +4 -4
- package/dist/{Index-0a743dbe.js → Index-e09c49fe.js} +8 -8
- package/dist/{Index-9f14cadf.js → Index-f38920d4.js} +5 -5
- package/dist/{Index-ad6b4226.js → Index-f553b37b.js} +1 -1
- package/dist/{Index-db68776e.js → Index-fb376836.js} +40 -57
- package/dist/{Index-d354a773.js → Index-ffd4628c.js} +4 -4
- package/dist/{InputToggleRow-9f3a21c8.js → InputToggleRow-30c797ff.js} +1 -1
- package/dist/{IsPremiumPreStep-fc67e5a6.js → IsPremiumPreStep-29ac5130.js} +3 -3
- package/dist/ManualPopover-e29aec0f.js +53 -0
- package/dist/{MediaWrapper-97e972de.js → MediaWrapper-5ab8b512.js} +3 -3
- package/dist/{NotBindingText-a1bfc652.js → NotBindingText-52e7d568.js} +2 -2
- package/dist/{PackageGroup-fd73d61e.js → PackageGroup-a8ba9e0c.js} +14 -12
- package/dist/{PdfTerms-183987fe.js → PdfTerms-3070a25a.js} +5 -5
- package/dist/{PdfViewer-92bae106.js → PdfViewer-ccf3911c.js} +3 -3
- package/dist/{PlainHtml-659dc40e.js → PlainHtml-ae01e2c1.js} +1 -1
- package/dist/{PriceHeader-07cd131c.js → PriceHeader-41fd73c8.js} +17 -16
- package/dist/{SearchApi-64811a82.js → SearchApi-c4b052bb.js} +2 -2
- package/dist/{Setup-2ceea9c6.js → Setup-1317a382.js} +1 -1
- package/dist/{TermsSettings-fcd58004.js → TermsSettings-01af3b70.js} +6 -6
- package/dist/{ThemeColorRow-df5956c8.js → ThemeColorRow-269ca4a8.js} +13 -11
- package/dist/{ToggleBinding-f7bc2d76.js → ToggleBinding-dad24847.js} +3 -3
- package/dist/{UploadModal-a1ac0b5c.js → UploadModal-0b1b4fdc.js} +3 -3
- package/dist/{VideoPlayerInput-1f3f68ff.js → VideoPlayerInput-549aefde.js} +3 -3
- package/dist/{VideoPlayerSettings-11942297.js → VideoPlayerSettings-ae3426d4.js} +4 -4
- package/dist/{VideoSelectModal-745c2810.js → VideoSelectModal-02d28522.js} +8 -8
- package/dist/{answerDocumentMixin-f8efbecd.js → answerDocumentMixin-7be9822c.js} +3 -3
- package/dist/{cssMode-76c1eb7e.js → cssMode-69bff585.js} +7 -7
- package/dist/dom-d4731032.js +68 -0
- package/dist/{focusDrawerMixin-ef272683.js → focusDrawerMixin-1a22fcb0.js} +1 -1
- package/dist/{formComponentsInstall-1032f4c0.js → formComponentsInstall-ff788fa4.js} +12 -12
- package/dist/{formValidationMixin-cae02f79.js → formValidationMixin-7af4cf59.js} +2 -2
- package/dist/{freemarker2-a5050433.js → freemarker2-c8b91e6a.js} +7 -7
- package/dist/{handlebars-97600bea.js → handlebars-407a195e.js} +7 -7
- package/dist/{html-848aba57.js → html-9fbb1e72.js} +7 -7
- package/dist/{htmlMode-f297f1ba.js → htmlMode-a62a60c0.js} +7 -7
- package/dist/{image-eeafca74.js → image-b55f2afd.js} +1 -1
- package/dist/{index-b156c3e5.js → index-016c9a62.js} +4 -4
- package/dist/{index-d9dc84c3.js → index-21eac157.js} +25 -25
- package/dist/{index-9c826693.js → index-76693b13.js} +5 -5
- package/dist/{index-66441a0e.js → index-793542d1.js} +11 -9
- package/dist/{index-5bf60a14.js → index-d71d06aa.js} +2 -2
- package/dist/index-dfb4db64.js +99 -0
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +493 -493
- package/dist/{javascript-05903a61.js → javascript-09ef29cb.js} +8 -8
- package/dist/{jsonMode-808b2c11.js → jsonMode-10afc369.js} +7 -7
- package/dist/{liquid-3a4ed820.js → liquid-233a80fe.js} +7 -7
- package/dist/{main-37f5e386.js → main-d566af3b.js} +933 -916
- package/dist/{mapFormMixin-57fc1af3.js → mapFormMixin-c6d17f7c.js} +1 -1
- package/dist/{publicSenderState-23dfd84e.js → publicSenderState-1c913217.js} +1 -1
- package/dist/{python-59364ca7.js → python-90cbed7b.js} +7 -7
- package/dist/{razor-c485357e.js → razor-0f34f5b0.js} +7 -7
- package/dist/{simplebar.min-0afea859.js → simplebar.min-7b840f57.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{template-09a48d50.js → template-6c789e3b.js} +1 -1
- package/dist/{throttle-7cc7cddf.js → throttle-b4fba152.js} +2 -2
- package/dist/{tinycolor-9b14b99e.js → tinycolor-72610713.js} +1 -1
- package/dist/{tippy.esm-e04582c9.js → tippy.esm-c1d37448.js} +5 -5
- package/dist/{tsMode-1c3b939e.js → tsMode-26efb298.js} +7 -7
- package/dist/{typescript-80bee482.js → typescript-06af0784.js} +7 -7
- package/dist/{utils-48a92f83.js → utils-9efb546e.js} +1 -1
- package/dist/{vuedraggable.umd-937de8ac.js → vuedraggable.umd-64934a87.js} +1 -1
- package/dist/{xml-277e74c7.js → xml-7b0b742f.js} +7 -7
- package/package.json +1 -1
- package/dist/dom-068d1a7b.js +0 -59
|
@@ -1,107 +1,108 @@
|
|
|
1
|
-
import { aY as
|
|
2
|
-
import { m as g, a as
|
|
3
|
-
import "./index-
|
|
4
|
-
import { v as
|
|
5
|
-
import { d as
|
|
6
|
-
import { b as Ne, I, c as je, a as
|
|
7
|
-
import { D as Ke, l as Ye, g as Qe, W as Je, b as Xe, a as
|
|
8
|
-
import { s as b } from "./simplebar.min-
|
|
9
|
-
import { B as
|
|
10
|
-
import { c as
|
|
11
|
-
import { a as
|
|
12
|
-
import { m as
|
|
13
|
-
import { S as
|
|
14
|
-
import { s as v, f as
|
|
15
|
-
import { f as
|
|
16
|
-
import { F as
|
|
17
|
-
import { S as
|
|
18
|
-
import { o as
|
|
19
|
-
import { s as
|
|
20
|
-
import
|
|
1
|
+
import { aY as pe, aZ as ue, a_ as G, a$ as me, b0 as U, b1 as W, b2 as he, b3 as fe, b4 as ge, b5 as Ce, j as ve, g as m, n as c, s as q, b as u, av as ye, c as f, C as N, b6 as xe, b7 as we, h as $, b8 as be, b9 as _e, A as ke, ba as Le, bb as $e, aX as Se, bc as Te, N as d, a4 as h, aS as y, bd as De, be as Ve, bf as Me, bg as Be, D as Ie, bh as Fe, d as He, i as _, H as Ae, S as Pe, ap as Ee, ae as ze, bi as Ze, V as B, aU as j, aV as K, I as H, bj as T, aW as Oe, bk as Re, bl as V, r as Ge, m as Ue, a as We, bm as qe } from "./main-d566af3b.js";
|
|
2
|
+
import { m as g, a as x } from "./vuex.esm-4a0fff7c.js";
|
|
3
|
+
import "./index-21eac157.js";
|
|
4
|
+
import { v as M } from "./index-805c56e4.js";
|
|
5
|
+
import { d as I, w as k } from "./CDropdownItem-df2fa4e1.js";
|
|
6
|
+
import { b as Ne, I as F, c as je, a as Y } from "./IsPremiumPreStep-29ac5130.js";
|
|
7
|
+
import { D as Ke, l as Ye, g as Qe, W as Je, b as Xe, a as e1 } from "./DocumentLayout-9d7c3945.js";
|
|
8
|
+
import { s as b } from "./simplebar.min-7b840f57.js";
|
|
9
|
+
import { B as t1 } from "./BlockMedia-8cded5ef.js";
|
|
10
|
+
import { c as i1, g as a1 } from "./template-6c789e3b.js";
|
|
11
|
+
import { a as n1 } from "./tinycolor-72610713.js";
|
|
12
|
+
import { m as L } from "./mapFormMixin-c6d17f7c.js";
|
|
13
|
+
import { S as s1, C as Q, i as o1 } from "./formComponentsInstall-ff788fa4.js";
|
|
14
|
+
import { s as v, f as l1 } from "./focusDrawerMixin-1a22fcb0.js";
|
|
15
|
+
import { f as r1 } from "./formValidationMixin-7af4cf59.js";
|
|
16
|
+
import { F as J, d as c1 } from "./tippy.esm-c1d37448.js";
|
|
17
|
+
import { S as d1 } from "./CSlider.vue_vue_type_style_index_0_lang-a27aef22.js";
|
|
18
|
+
import { o as p1, d as u1 } from "./vuedraggable.umd-64934a87.js";
|
|
19
|
+
import { s as m1 } from "./dom-d4731032.js";
|
|
20
|
+
import { o as h1 } from "./index-dfb4db64.js";
|
|
21
|
+
import f1 from "./AnswerModal-2fde5937.js";
|
|
21
22
|
import "./anime.es-e284c852.js";
|
|
22
|
-
import "./image-
|
|
23
|
+
import "./image-b55f2afd.js";
|
|
23
24
|
import "./color-71c20583.js";
|
|
24
|
-
import "./BaseDatePicker-
|
|
25
|
-
import "./ErrorCallout-
|
|
26
|
-
import "./AddClientCallout-
|
|
27
|
-
import "./ClientAutocomplete-
|
|
28
|
-
import "./SearchApi-
|
|
29
|
-
import "./ClientModal-
|
|
30
|
-
import "./CCallout-
|
|
31
|
-
import "./CField-
|
|
25
|
+
import "./BaseDatePicker-cb470a9e.js";
|
|
26
|
+
import "./ErrorCallout-73785234.js";
|
|
27
|
+
import "./AddClientCallout-ab49f62b.js";
|
|
28
|
+
import "./ClientAutocomplete-6d25f1ac.js";
|
|
29
|
+
import "./SearchApi-c4b052bb.js";
|
|
30
|
+
import "./ClientModal-f954d9e4.js";
|
|
31
|
+
import "./CCallout-a561eca4.js";
|
|
32
|
+
import "./CField-6545c8d4.js";
|
|
32
33
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
33
|
-
import "./ColorPicker-
|
|
34
|
-
var
|
|
35
|
-
function
|
|
34
|
+
import "./ColorPicker-b81d49dc.js";
|
|
35
|
+
var g1 = pe, C1 = ue, v1 = G;
|
|
36
|
+
function y1(i, e, t) {
|
|
36
37
|
for (var a = -1, n = e.length, s = {}; ++a < n; ) {
|
|
37
|
-
var o = e[a], l =
|
|
38
|
-
t(l, o) &&
|
|
38
|
+
var o = e[a], l = g1(i, o);
|
|
39
|
+
t(l, o) && C1(s, v1(o, i), l);
|
|
39
40
|
}
|
|
40
41
|
return s;
|
|
41
42
|
}
|
|
42
|
-
var
|
|
43
|
-
function
|
|
43
|
+
var x1 = y1;
|
|
44
|
+
function w1(i, e) {
|
|
44
45
|
return i != null && e in Object(i);
|
|
45
46
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
48
|
-
return
|
|
47
|
+
var b1 = w1, _1 = me, k1 = U, L1 = "[object Arguments]";
|
|
48
|
+
function $1(i) {
|
|
49
|
+
return k1(i) && _1(i) == L1;
|
|
49
50
|
}
|
|
50
|
-
var
|
|
51
|
+
var S1 = $1, A = S1, T1 = U, X = Object.prototype, D1 = X.hasOwnProperty, V1 = X.propertyIsEnumerable, M1 = A(function() {
|
|
51
52
|
return arguments;
|
|
52
53
|
}()) ? A : function(i) {
|
|
53
|
-
return
|
|
54
|
-
},
|
|
55
|
-
function
|
|
56
|
-
return typeof i == "number" && i > -1 && i % 1 == 0 && i <=
|
|
54
|
+
return T1(i) && D1.call(i, "callee") && !V1.call(i, "callee");
|
|
55
|
+
}, ee = M1, B1 = 9007199254740991;
|
|
56
|
+
function I1(i) {
|
|
57
|
+
return typeof i == "number" && i > -1 && i % 1 == 0 && i <= B1;
|
|
57
58
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
60
|
-
e =
|
|
59
|
+
var F1 = I1, H1 = G, A1 = ee, P1 = W, E1 = he, z1 = F1, Z1 = fe;
|
|
60
|
+
function O1(i, e, t) {
|
|
61
|
+
e = H1(e, i);
|
|
61
62
|
for (var a = -1, n = e.length, s = !1; ++a < n; ) {
|
|
62
|
-
var o =
|
|
63
|
+
var o = Z1(e[a]);
|
|
63
64
|
if (!(s = i != null && t(i, o)))
|
|
64
65
|
break;
|
|
65
66
|
i = i[o];
|
|
66
67
|
}
|
|
67
|
-
return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n &&
|
|
68
|
+
return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && z1(n) && E1(o, n) && (P1(i) || A1(i)));
|
|
68
69
|
}
|
|
69
|
-
var
|
|
70
|
-
function
|
|
71
|
-
return i != null &&
|
|
70
|
+
var R1 = O1, G1 = b1, U1 = R1;
|
|
71
|
+
function W1(i, e) {
|
|
72
|
+
return i != null && U1(i, e, G1);
|
|
72
73
|
}
|
|
73
|
-
var
|
|
74
|
-
function
|
|
75
|
-
return
|
|
76
|
-
return
|
|
74
|
+
var q1 = W1, N1 = x1, j1 = q1;
|
|
75
|
+
function K1(i, e) {
|
|
76
|
+
return N1(i, e, function(t, a) {
|
|
77
|
+
return j1(i, a);
|
|
77
78
|
});
|
|
78
79
|
}
|
|
79
|
-
var
|
|
80
|
-
function
|
|
80
|
+
var Y1 = K1;
|
|
81
|
+
function Q1(i, e) {
|
|
81
82
|
for (var t = -1, a = e.length, n = i.length; ++t < a; )
|
|
82
83
|
i[n + t] = e[t];
|
|
83
84
|
return i;
|
|
84
85
|
}
|
|
85
|
-
var
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
var J1 = Q1, P = ge, X1 = ee, et = W, E = P ? P.isConcatSpreadable : void 0;
|
|
87
|
+
function tt(i) {
|
|
88
|
+
return et(i) || X1(i) || !!(E && i && i[E]);
|
|
88
89
|
}
|
|
89
|
-
var
|
|
90
|
-
function
|
|
90
|
+
var it = tt, at = J1, nt = it;
|
|
91
|
+
function te(i, e, t, a, n) {
|
|
91
92
|
var s = -1, o = i.length;
|
|
92
|
-
for (t || (t =
|
|
93
|
+
for (t || (t = nt), n || (n = []); ++s < o; ) {
|
|
93
94
|
var l = i[s];
|
|
94
|
-
e > 0 && t(l) ? e > 1 ?
|
|
95
|
+
e > 0 && t(l) ? e > 1 ? te(l, e - 1, t, a, n) : at(n, l) : a || (n[n.length] = l);
|
|
95
96
|
}
|
|
96
97
|
return n;
|
|
97
98
|
}
|
|
98
|
-
var
|
|
99
|
-
function
|
|
99
|
+
var st = te, ot = st;
|
|
100
|
+
function lt(i) {
|
|
100
101
|
var e = i == null ? 0 : i.length;
|
|
101
|
-
return e ?
|
|
102
|
+
return e ? ot(i, 1) : [];
|
|
102
103
|
}
|
|
103
|
-
var
|
|
104
|
-
function
|
|
104
|
+
var rt = lt;
|
|
105
|
+
function ct(i, e, t) {
|
|
105
106
|
switch (t.length) {
|
|
106
107
|
case 0:
|
|
107
108
|
return i.call(e);
|
|
@@ -114,56 +115,56 @@ function r1(i, e, t) {
|
|
|
114
115
|
}
|
|
115
116
|
return i.apply(e, t);
|
|
116
117
|
}
|
|
117
|
-
var
|
|
118
|
-
function
|
|
118
|
+
var dt = ct, pt = dt, z = Math.max;
|
|
119
|
+
function ut(i, e, t) {
|
|
119
120
|
return e = z(e === void 0 ? i.length - 1 : e, 0), function() {
|
|
120
121
|
for (var a = arguments, n = -1, s = z(a.length - e, 0), o = Array(s); ++n < s; )
|
|
121
122
|
o[n] = a[e + n];
|
|
122
123
|
n = -1;
|
|
123
124
|
for (var l = Array(e + 1); ++n < e; )
|
|
124
125
|
l[n] = a[n];
|
|
125
|
-
return l[e] = t(o),
|
|
126
|
+
return l[e] = t(o), pt(i, this, l);
|
|
126
127
|
};
|
|
127
128
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
129
|
+
var mt = ut;
|
|
130
|
+
function ht(i) {
|
|
130
131
|
return function() {
|
|
131
132
|
return i;
|
|
132
133
|
};
|
|
133
134
|
}
|
|
134
|
-
var
|
|
135
|
-
function
|
|
135
|
+
var ft = ht;
|
|
136
|
+
function gt(i) {
|
|
136
137
|
return i;
|
|
137
138
|
}
|
|
138
|
-
var
|
|
139
|
+
var Ct = gt, vt = ft, Z = Ce, yt = Ct, xt = Z ? function(i, e) {
|
|
139
140
|
return Z(i, "toString", {
|
|
140
141
|
configurable: !0,
|
|
141
142
|
enumerable: !1,
|
|
142
|
-
value:
|
|
143
|
+
value: vt(e),
|
|
143
144
|
writable: !0
|
|
144
145
|
});
|
|
145
|
-
} :
|
|
146
|
-
function
|
|
146
|
+
} : yt, wt = xt, bt = 800, _t = 16, kt = Date.now;
|
|
147
|
+
function Lt(i) {
|
|
147
148
|
var e = 0, t = 0;
|
|
148
149
|
return function() {
|
|
149
|
-
var a =
|
|
150
|
+
var a = kt(), n = _t - (a - t);
|
|
150
151
|
if (t = a, n > 0) {
|
|
151
|
-
if (++e >=
|
|
152
|
+
if (++e >= bt)
|
|
152
153
|
return arguments[0];
|
|
153
154
|
} else
|
|
154
155
|
e = 0;
|
|
155
156
|
return i.apply(void 0, arguments);
|
|
156
157
|
};
|
|
157
158
|
}
|
|
158
|
-
var
|
|
159
|
-
function
|
|
160
|
-
return
|
|
159
|
+
var $t = Lt, St = wt, Tt = $t, Dt = Tt(St), Vt = Dt, Mt = rt, Bt = mt, It = Vt;
|
|
160
|
+
function Ft(i) {
|
|
161
|
+
return It(Bt(i, void 0, Mt), i + "");
|
|
161
162
|
}
|
|
162
|
-
var
|
|
163
|
-
return i == null ? {} :
|
|
164
|
-
}),
|
|
165
|
-
const
|
|
166
|
-
const
|
|
163
|
+
var Ht = Ft, At = Y1, Pt = Ht, Et = Pt(function(i, e) {
|
|
164
|
+
return i == null ? {} : At(i, e);
|
|
165
|
+
}), zt = Et;
|
|
166
|
+
const Zt = /* @__PURE__ */ ve(zt);
|
|
167
|
+
const Ot = {
|
|
167
168
|
i18nOptions: {
|
|
168
169
|
namespaces: "DocumentTemplateFormModal",
|
|
169
170
|
messages: {
|
|
@@ -216,7 +217,7 @@ const Z1 = {
|
|
|
216
217
|
},
|
|
217
218
|
validations: {
|
|
218
219
|
name: {
|
|
219
|
-
required:
|
|
220
|
+
required: M.requiredIf((i) => !i.updateExistingDocTemplate)
|
|
220
221
|
}
|
|
221
222
|
},
|
|
222
223
|
computed: {
|
|
@@ -244,7 +245,7 @@ const Z1 = {
|
|
|
244
245
|
this.$refs.input && this.$refs.input.focus();
|
|
245
246
|
},
|
|
246
247
|
methods: {
|
|
247
|
-
...
|
|
248
|
+
...x({
|
|
248
249
|
loadTemplate: m.DO_LOAD_TEMPLATE,
|
|
249
250
|
saveTemplate: m.SAVE_TEMPLATE_FORM,
|
|
250
251
|
updateSettings: m.UPDATE_SETTINGS
|
|
@@ -297,7 +298,7 @@ const Z1 = {
|
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
300
|
};
|
|
300
|
-
var
|
|
301
|
+
var Rt = function() {
|
|
301
302
|
var e = this, t = e._self._c;
|
|
302
303
|
return t("div", { staticClass: "t-root font-inter" }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, [e._v(" " + e._s(e.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })) + " ")]), t("div", [e.template ? e._e() : t("CCallout", [e._v(" " + e._s(e.$t("calloutDescription")) + " ")]), t("CField", { attrs: { vuelidate: e.$v.name, "vuelidate-messages": e.messages.name, label: e.$t("_common:name").capitalize(), "label-position": "inside" } }, [t("CInput", { ref: "input", staticClass: "rounder", staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { value: e.updateExistingDocTemplate ? e.document.template.name : e.name, placeholder: e.$t("namePlaceholder"), disabled: e.updateExistingDocTemplate, autofocus: "", size: "medium" }, on: { input: function(a) {
|
|
303
304
|
e.name = a;
|
|
@@ -306,18 +307,18 @@ var O1 = function() {
|
|
|
306
307
|
}, expression: "updateExistingDocTemplate" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("updateExisting")) + " ")])])], 1)], 1) : e._e(), e.document && e.document.clients.length ? t("div", [t("CField", { staticStyle: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, [t("CCheckbox", { attrs: { type: "secondary", size: "normal" }, model: { value: e.keepClients, callback: function(a) {
|
|
307
308
|
e.keepClients = a;
|
|
308
309
|
}, expression: "keepClients" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("keepClients")) + " ")])])], 1)], 1) : e._e()], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", taller: "" }, on: { click: e.onSave } }, [e._v(" " + e._s(e.actionButtonText) + " ")])], 1);
|
|
309
|
-
},
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
}, Gt = [], Ut = /* @__PURE__ */ c(
|
|
311
|
+
Ot,
|
|
312
|
+
Rt,
|
|
313
|
+
Gt,
|
|
313
314
|
!1,
|
|
314
315
|
null,
|
|
315
316
|
"9f39f8ce",
|
|
316
317
|
null,
|
|
317
318
|
null
|
|
318
319
|
);
|
|
319
|
-
const
|
|
320
|
-
function
|
|
320
|
+
const ie = Ut.exports;
|
|
321
|
+
function Wt(i, { availableProducts: e }) {
|
|
321
322
|
if (!i)
|
|
322
323
|
throw new Error("Missing parameter templateId");
|
|
323
324
|
const t = e, a = Object.keys(t).find((n) => {
|
|
@@ -330,10 +331,10 @@ function U1(i, { availableProducts: e }) {
|
|
|
330
331
|
});
|
|
331
332
|
return a ? t[a] : null;
|
|
332
333
|
}
|
|
333
|
-
async function
|
|
334
|
+
async function qt(i) {
|
|
334
335
|
if (!i)
|
|
335
336
|
throw new Error("Missing argument stripeProduct");
|
|
336
|
-
const e = i == null ? void 0 : i.prices[0], { data: t } = await
|
|
337
|
+
const e = i == null ? void 0 : i.prices[0], { data: t } = await ye.createCheckoutSession({
|
|
337
338
|
items: [
|
|
338
339
|
{
|
|
339
340
|
stripePriceStripeId: e.stripeId,
|
|
@@ -345,17 +346,17 @@ async function W1(i) {
|
|
|
345
346
|
}), { redirectUrl: a } = t;
|
|
346
347
|
window.open(a, "_blank");
|
|
347
348
|
}
|
|
348
|
-
function
|
|
349
|
+
function ae(i, { availableProducts: e }) {
|
|
349
350
|
var n, s, o;
|
|
350
351
|
let t = null;
|
|
351
|
-
const a =
|
|
352
|
+
const a = Wt(i.templateId, { availableProducts: e });
|
|
352
353
|
return a && (t = {
|
|
353
354
|
price: q((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, { currency: (s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].currency }),
|
|
354
355
|
isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
|
|
355
|
-
onBuy: async () =>
|
|
356
|
+
onBuy: async () => qt(a)
|
|
356
357
|
}), t;
|
|
357
358
|
}
|
|
358
|
-
const
|
|
359
|
+
const Nt = {
|
|
359
360
|
name: "GalleryTemplateModal",
|
|
360
361
|
components: {
|
|
361
362
|
simplebar: b,
|
|
@@ -435,7 +436,7 @@ const q1 = {
|
|
|
435
436
|
}
|
|
436
437
|
},
|
|
437
438
|
created() {
|
|
438
|
-
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn =
|
|
439
|
+
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = xe.on("event", async ({ type: i, action: e, data: t }) => {
|
|
439
440
|
var a;
|
|
440
441
|
if (i === "companyPurchase" && e === "applied" && (t == null ? void 0 : t.type) === "template") {
|
|
441
442
|
const n = (a = t == null ? void 0 : t.data) == null ? void 0 : a.id;
|
|
@@ -446,7 +447,7 @@ const q1 = {
|
|
|
446
447
|
isVisibleApp: !0,
|
|
447
448
|
includePurchaseInfo: !0
|
|
448
449
|
}, o = await this.fetchGallery(s);
|
|
449
|
-
this.privateProduct =
|
|
450
|
+
this.privateProduct = ae(o[0], { availableProducts: this.stripeProducts });
|
|
450
451
|
}
|
|
451
452
|
}));
|
|
452
453
|
},
|
|
@@ -458,7 +459,7 @@ const q1 = {
|
|
|
458
459
|
const i = this.template.id;
|
|
459
460
|
i || (this.templateStat = null);
|
|
460
461
|
try {
|
|
461
|
-
const { data: e } = await
|
|
462
|
+
const { data: e } = await we.get(i);
|
|
462
463
|
this.templateStat = e;
|
|
463
464
|
} catch {
|
|
464
465
|
this.templateStat = null;
|
|
@@ -475,7 +476,7 @@ const q1 = {
|
|
|
475
476
|
}
|
|
476
477
|
}
|
|
477
478
|
};
|
|
478
|
-
var
|
|
479
|
+
var jt = function() {
|
|
479
480
|
var a, n;
|
|
480
481
|
var e = this, t = e._self._c;
|
|
481
482
|
return t("div", { staticClass: "bg-gray-200 template-modal font-inter" }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": "rgb(244, 244, 244) 0px 2px 14px 0px inset, rgba(0, 0, 0, 0.09) 0px 8px 35px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset", flex: "1 1 auto", "min-height": "0" } }, [t("simplebar", { staticClass: "w-full h-full", attrs: { "data-simplebar-auto-hide": "false" } }, [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : e._e(), e.product && !e.privateProduct.isPurchased ? t("style", { tag: "component" }, [e._v(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")]) : e._e()], 1)], 1), t("div", { staticStyle: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, [e._v(" " + e._s(e.meta.name) + " ")]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, [(a = e.templateStat) != null && a.usedTimes ? [e._v(" " + e._s(e.$t("_common:used").capitalize()) + " " + e._s(e.templateStat.usedTimes) + " " + e._s(e.$t("_common:times", { count: e.templateStat.usedTimes })) + " ")] : e._e()], 2), t("div", { staticStyle: { hyphens: "auto" } }, [e._v(" " + e._s(e.meta.text) + " ")]), e.meta.author ? t("div", { staticClass: "flex items-center", staticStyle: { "padding-top": "1.5em" } }, [t("div", { staticStyle: { "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, style: {
|
|
@@ -483,17 +484,17 @@ var N1 = function() {
|
|
|
483
484
|
} }), t("div", { staticStyle: { "margin-left": "0.5em" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(e.meta.author.name))]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px" } }, [e.meta.author.templatesCount ? [e._v(" " + e._s(e.meta.author.templatesCount) + " " + e._s(e.$t("_common:template", { count: e.meta.author.templatesCount })) + " ")] : [e._v(e._s(e.$t("_common:template").capitalize()))]], 2)])]) : e._e()]), t("div", { staticStyle: { "padding-bottom": "2em" } }, [e.product ? [e.privateProduct.isPurchased ? t("div", { staticClass: "flex items-center gap-2 p-1 mb-5 text-sm border border-gray-300 rounded-full bg-gray-300/60" }, [t("div", { staticClass: "flex items-center justify-center w-5 h-5 rounded-full bg-primary-500" }, [t("BaseIcon", { staticClass: "text-white", attrs: { type: "check", size: "12" } })], 1), t("div", { staticClass: "text-xs font-medium text-gray-700", domProps: { textContent: e._s(e.$t("_common:purchased", { thing: e.$t("_common:template") })) } })]) : t("CButton", { staticClass: "text-left !justify-start !px-4", staticStyle: { "margin-bottom": "0.5em" }, attrs: { type: "secondary", wide: "" }, on: { click: e.buyTemplate } }, [t("div", [e._v(" " + e._s(e.$t("_common:buy", { thing: e.$t("_common:template") })) + " ")]), t("div", { staticClass: "absolute py-1.5 px-2 text-sm leading-none text-white -translate-y-1/2 border rounded-md right-2 top-1/2 bg-primary-400/80 border-primary-600/60", domProps: { textContent: e._s(e.privateProduct.price) } })])] : e._e(), !e.product || e.privateProduct.isPurchased ? t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { disabled: e.product ? !e.privateProduct.isPurchased : !1, type: "secondary", wide: "" }, on: { click: e.useSelectedTemplate } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")]) : e._e(), (e.product ? (n = e.product) != null && n.isPurchased : e.showSave) ? t("CButton", { attrs: { loading: e.isLoading, type: e.didSave ? "success" : "none", "icon-left": e.didSave ? "check" : void 0, wide: "" }, on: { click: function(s) {
|
|
484
485
|
e.didSave || e.saveAsTemplate();
|
|
485
486
|
} } }, [e._v(" " + e._s(e.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")]) : e._e()], 2)])]);
|
|
486
|
-
},
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
487
|
+
}, Kt = [], Yt = /* @__PURE__ */ c(
|
|
488
|
+
Nt,
|
|
489
|
+
jt,
|
|
490
|
+
Kt,
|
|
490
491
|
!1,
|
|
491
492
|
null,
|
|
492
493
|
"07b93fb2",
|
|
493
494
|
null,
|
|
494
495
|
null
|
|
495
496
|
);
|
|
496
|
-
const
|
|
497
|
+
const Qt = Yt.exports, Jt = {
|
|
497
498
|
name: "GalleryLogic",
|
|
498
499
|
i18nOptions: {
|
|
499
500
|
namespaces: "GalleryLogic",
|
|
@@ -621,11 +622,11 @@ const Y1 = K1.exports, Q1 = {
|
|
|
621
622
|
const s = this.templateGalleryItems.find(({ id: o }) => o === i);
|
|
622
623
|
this.selectGalleryItem(s);
|
|
623
624
|
} catch (s) {
|
|
624
|
-
|
|
625
|
+
$(s);
|
|
625
626
|
}
|
|
626
627
|
},
|
|
627
628
|
methods: {
|
|
628
|
-
...
|
|
629
|
+
...x({
|
|
629
630
|
loadPrices: m.LOAD_PRICES
|
|
630
631
|
}),
|
|
631
632
|
async loadTemplateGallery() {
|
|
@@ -639,13 +640,13 @@ const Y1 = K1.exports, Q1 = {
|
|
|
639
640
|
const e = await this.fetchGallery(i);
|
|
640
641
|
this.templateGalleryItems = (e || []).map((t) => {
|
|
641
642
|
if (this.canPurchase && t.isPurchasable) {
|
|
642
|
-
const a =
|
|
643
|
+
const a = ae(t, { availableProducts: this.stripeProducts });
|
|
643
644
|
a && (t.product = a);
|
|
644
645
|
}
|
|
645
646
|
return t;
|
|
646
647
|
}), this.availableCategoryKeys = e.reduce((t, a) => [.../* @__PURE__ */ new Set([...t, ...a.categories])], []);
|
|
647
648
|
} catch (e) {
|
|
648
|
-
|
|
649
|
+
$(e);
|
|
649
650
|
} finally {
|
|
650
651
|
this.isLoading = !1;
|
|
651
652
|
}
|
|
@@ -658,7 +659,7 @@ const Y1 = K1.exports, Q1 = {
|
|
|
658
659
|
isVisibleApp: !0,
|
|
659
660
|
includePurchaseInfo: !0
|
|
660
661
|
}, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
|
|
661
|
-
return a ? (
|
|
662
|
+
return a ? (be(a), new _e(a)) : null;
|
|
662
663
|
},
|
|
663
664
|
onUseTemplate(i) {
|
|
664
665
|
if (!i)
|
|
@@ -681,7 +682,7 @@ const Y1 = K1.exports, Q1 = {
|
|
|
681
682
|
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
682
683
|
};
|
|
683
684
|
this.$modal.show(
|
|
684
|
-
|
|
685
|
+
Qt,
|
|
685
686
|
{
|
|
686
687
|
template: i,
|
|
687
688
|
fetchGallery: this.fetchGallery,
|
|
@@ -736,30 +737,30 @@ const Y1 = K1.exports, Q1 = {
|
|
|
736
737
|
selectGalleryItem: this.selectGalleryItem
|
|
737
738
|
});
|
|
738
739
|
}
|
|
739
|
-
},
|
|
740
|
-
var
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
740
|
+
}, Xt = null, e2 = null;
|
|
741
|
+
var t2 = /* @__PURE__ */ c(
|
|
742
|
+
Jt,
|
|
743
|
+
Xt,
|
|
744
|
+
e2,
|
|
744
745
|
!1,
|
|
745
746
|
null,
|
|
746
747
|
null,
|
|
747
748
|
null,
|
|
748
749
|
null
|
|
749
750
|
);
|
|
750
|
-
const
|
|
751
|
-
const
|
|
751
|
+
const i2 = t2.exports;
|
|
752
|
+
const a2 = {
|
|
752
753
|
name: "DocumentIcon",
|
|
753
|
-
truncate:
|
|
754
|
+
truncate: ke,
|
|
754
755
|
inject: {
|
|
755
756
|
components: {
|
|
756
757
|
default: {
|
|
757
|
-
BlockMedia:
|
|
758
|
+
BlockMedia: t1
|
|
758
759
|
}
|
|
759
760
|
}
|
|
760
761
|
}
|
|
761
762
|
};
|
|
762
|
-
var
|
|
763
|
+
var n2 = function(e, t) {
|
|
763
764
|
return e("div", t._b({ key: t.data.key, staticClass: "item", class: [
|
|
764
765
|
t.data.staticClass,
|
|
765
766
|
t.data.class,
|
|
@@ -773,18 +774,18 @@ var a2 = function(e, t) {
|
|
|
773
774
|
} } }, "div", t.data.attrs, !1), [e("div", { staticClass: "item-paper" }, [t.props.thumbnail ? e("div", { staticStyle: { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }, style: {
|
|
774
775
|
backgroundImage: `url(${t.props.thumbnail})`
|
|
775
776
|
} }) : t.props.isPlaceholder || t.props.isAdd ? t._e() : e(t.injections.components.BlockMedia, { tag: "component", staticClass: "item-media", attrs: { media: t.props.media, preview: "" } }), t.scopedSlots.badge ? e("div", { staticClass: "absolute right-2 bottom-2" }, [t._t("badge")], 2) : t._e(), t.props.isAdd ? e("div", { staticClass: "add-button" }, [e("BaseIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : t._e()], 1), e("div", { staticClass: "item-footer" }, [t.props.isAdd ? e("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: t._s(t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })) } }) : t.props.name ? [e("div", { staticClass: "item-text", domProps: { textContent: t._s(t.$options.truncate(t.props.name, 60)) } }), t._t("default")] : t._e()], 2)]);
|
|
776
|
-
},
|
|
777
|
-
i2,
|
|
777
|
+
}, s2 = [], o2 = /* @__PURE__ */ c(
|
|
778
778
|
a2,
|
|
779
779
|
n2,
|
|
780
|
+
s2,
|
|
780
781
|
!0,
|
|
781
782
|
null,
|
|
782
783
|
"7ebb1c9a",
|
|
783
784
|
null,
|
|
784
785
|
null
|
|
785
786
|
);
|
|
786
|
-
const
|
|
787
|
-
const
|
|
787
|
+
const l2 = o2.exports;
|
|
788
|
+
const r2 = {
|
|
788
789
|
name: "HorizontalScroll",
|
|
789
790
|
components: {
|
|
790
791
|
Simplebar: b
|
|
@@ -831,7 +832,7 @@ const l2 = {
|
|
|
831
832
|
}
|
|
832
833
|
}
|
|
833
834
|
};
|
|
834
|
-
var
|
|
835
|
+
var c2 = function() {
|
|
835
836
|
var e = this, t = e._self._c;
|
|
836
837
|
return t("div", { ref: "container", staticClass: "horizontal-scroll" }, [t("div", { staticClass: "hl-navigation" }, [e.hasPrev ? t("div", { staticClass: "hl-btn-left", on: { click: function(a) {
|
|
837
838
|
return e.go(-1);
|
|
@@ -844,18 +845,18 @@ var r2 = function() {
|
|
|
844
845
|
return e.$emit("expand");
|
|
845
846
|
} } })];
|
|
846
847
|
})], 2) : e._e()]), t("div", { staticClass: "hl-container" }, [t("Simplebar", { ref: "list", staticClass: "hl-list", on: { scroll: e.scrollHandler } }, [t("div", { staticClass: "flex w-full" }, [e._t("default")], 2)])], 1)]);
|
|
847
|
-
},
|
|
848
|
-
l2,
|
|
848
|
+
}, d2 = [], p2 = /* @__PURE__ */ c(
|
|
849
849
|
r2,
|
|
850
850
|
c2,
|
|
851
|
+
d2,
|
|
851
852
|
!1,
|
|
852
853
|
null,
|
|
853
854
|
"15f25c8e",
|
|
854
855
|
null,
|
|
855
856
|
null
|
|
856
857
|
);
|
|
857
|
-
const
|
|
858
|
-
const
|
|
858
|
+
const u2 = p2.exports;
|
|
859
|
+
const m2 = {
|
|
859
860
|
name: "DocumentFormRecent",
|
|
860
861
|
i18nOptions: {
|
|
861
862
|
namespaces: "DocumentFormRecent",
|
|
@@ -888,7 +889,7 @@ const u2 = {
|
|
|
888
889
|
this.onLoadDocuments();
|
|
889
890
|
},
|
|
890
891
|
methods: {
|
|
891
|
-
...
|
|
892
|
+
...x({
|
|
892
893
|
loadDocument: m.LOAD_DOCUMENT2
|
|
893
894
|
}),
|
|
894
895
|
async onInput() {
|
|
@@ -897,7 +898,7 @@ const u2 = {
|
|
|
897
898
|
async fetchDocuments(i) {
|
|
898
899
|
const e = this.query ? 180 : 90, t = {
|
|
899
900
|
createdAt: {
|
|
900
|
-
$gte: this.$formatDate(
|
|
901
|
+
$gte: this.$formatDate(Le(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
|
|
901
902
|
},
|
|
902
903
|
// Only provide or if there is a search query to filter on
|
|
903
904
|
...this.query && {
|
|
@@ -912,7 +913,7 @@ const u2 = {
|
|
|
912
913
|
}
|
|
913
914
|
]
|
|
914
915
|
}
|
|
915
|
-
}, { data: a } = await
|
|
916
|
+
}, { data: a } = await $e.getAll({
|
|
916
917
|
lean: !0,
|
|
917
918
|
filter: encodeURIComponent(JSON.stringify(t)),
|
|
918
919
|
fields: "clients,data.name,createdAt",
|
|
@@ -922,7 +923,7 @@ const u2 = {
|
|
|
922
923
|
}), { items: n = [] } = a || {};
|
|
923
924
|
return n;
|
|
924
925
|
},
|
|
925
|
-
onLoadDocuments:
|
|
926
|
+
onLoadDocuments: I(async function() {
|
|
926
927
|
this.isLoading = !0, this.hasItems = !0;
|
|
927
928
|
const e = await this.fetchDocuments();
|
|
928
929
|
(!e || !e.length) && (this.canFetchMore = !1), this.list = [...e || []], this.isLoading = !1;
|
|
@@ -934,7 +935,7 @@ const u2 = {
|
|
|
934
935
|
}
|
|
935
936
|
}
|
|
936
937
|
};
|
|
937
|
-
var
|
|
938
|
+
var h2 = function() {
|
|
938
939
|
var e = this, t = e._self._c;
|
|
939
940
|
return t("div", [t("div", { staticClass: "flex w-full", staticStyle: { "padding-bottom": "1em" } }, [e._t("default"), e.hasItems ? t("CInput", { attrs: { loading: e.isLoading, placeholder: e.$t("_common:search"), type: "search", size: "normal", filled: "" }, on: { input: e.onInput }, model: { value: e.query, callback: function(a) {
|
|
940
941
|
e.query = a;
|
|
@@ -951,18 +952,18 @@ var m2 = function() {
|
|
|
951
952
|
return s.stopPropagation(), e.onSaveDocumentTemplate(a._id);
|
|
952
953
|
} } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")]), t("CButton", { staticStyle: { "margin-left": "1em" }, attrs: { size: "small", type: "secondary" } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")])], 1) : e._e()]);
|
|
953
954
|
})], 2)]);
|
|
954
|
-
},
|
|
955
|
-
u2,
|
|
955
|
+
}, f2 = [], g2 = /* @__PURE__ */ c(
|
|
956
956
|
m2,
|
|
957
957
|
h2,
|
|
958
|
+
f2,
|
|
958
959
|
!1,
|
|
959
960
|
null,
|
|
960
961
|
"0096ccb0",
|
|
961
962
|
null,
|
|
962
963
|
null
|
|
963
964
|
);
|
|
964
|
-
const
|
|
965
|
-
const
|
|
965
|
+
const C2 = g2.exports;
|
|
966
|
+
const v2 = {
|
|
966
967
|
i18nOptions: {
|
|
967
968
|
namespaces: "TemplateSelector",
|
|
968
969
|
messages: {
|
|
@@ -1005,13 +1006,13 @@ const C2 = {
|
|
|
1005
1006
|
}
|
|
1006
1007
|
},
|
|
1007
1008
|
name: "TemplateSelector",
|
|
1008
|
-
mixins: [
|
|
1009
|
+
mixins: [k],
|
|
1009
1010
|
components: {
|
|
1010
|
-
HorizontalScroll:
|
|
1011
|
-
DocumentIcon:
|
|
1012
|
-
DocumentRecent:
|
|
1013
|
-
GalleryLogic:
|
|
1014
|
-
IsPremiumPreStep:
|
|
1011
|
+
HorizontalScroll: u2,
|
|
1012
|
+
DocumentIcon: l2,
|
|
1013
|
+
DocumentRecent: C2,
|
|
1014
|
+
GalleryLogic: i2,
|
|
1015
|
+
IsPremiumPreStep: F
|
|
1015
1016
|
},
|
|
1016
1017
|
props: {
|
|
1017
1018
|
// Used for creating documents form project/client views
|
|
@@ -1101,7 +1102,7 @@ const C2 = {
|
|
|
1101
1102
|
this.loadTemplates();
|
|
1102
1103
|
},
|
|
1103
1104
|
methods: {
|
|
1104
|
-
...
|
|
1105
|
+
...x({
|
|
1105
1106
|
loadTemplatesAction: m.LOAD_TEMPLATES,
|
|
1106
1107
|
loadTemplate: m.LOAD_TEMPLATE,
|
|
1107
1108
|
createTemplate: m.DO_CREATE_TEMPLATE,
|
|
@@ -1122,16 +1123,16 @@ const C2 = {
|
|
|
1122
1123
|
},
|
|
1123
1124
|
async saveTemplate(i) {
|
|
1124
1125
|
try {
|
|
1125
|
-
const { data: e } = i, t =
|
|
1126
|
+
const { data: e } = i, t = Se(e, ["_id", "id", "companyId", "isVisible"]);
|
|
1126
1127
|
return await this.createTemplate({ body: t }), !0;
|
|
1127
1128
|
} catch (e) {
|
|
1128
|
-
|
|
1129
|
+
$(e);
|
|
1129
1130
|
}
|
|
1130
1131
|
return !1;
|
|
1131
1132
|
},
|
|
1132
1133
|
async openTemplateFormModal({ document: i = null, template: e = null }) {
|
|
1133
1134
|
this.$modal.show(
|
|
1134
|
-
|
|
1135
|
+
ie,
|
|
1135
1136
|
{
|
|
1136
1137
|
document: i,
|
|
1137
1138
|
template: e,
|
|
@@ -1148,7 +1149,7 @@ const C2 = {
|
|
|
1148
1149
|
);
|
|
1149
1150
|
},
|
|
1150
1151
|
async fetchGallery(i = {}) {
|
|
1151
|
-
const { data: e } = await
|
|
1152
|
+
const { data: e } = await Te.get(i);
|
|
1152
1153
|
return e;
|
|
1153
1154
|
},
|
|
1154
1155
|
canUseTemplate(i) {
|
|
@@ -1156,7 +1157,7 @@ const C2 = {
|
|
|
1156
1157
|
}
|
|
1157
1158
|
}
|
|
1158
1159
|
};
|
|
1159
|
-
var
|
|
1160
|
+
var y2 = function() {
|
|
1160
1161
|
var e = this, t = e._self._c;
|
|
1161
1162
|
return t("div", { staticClass: "t-root" }, [t("div", { staticClass: "font-inter form-start main", class: { small: e.mq === "sm" } }, [e._t("header"), t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title" }, [t("div", [e._v(e._s(e.$t("myTemplates")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("myTemplatesSubTitle")) + " ")])]), t("IsPremiumPreStep", { attrs: { feature: "editDocumentLayout" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: a }) {
|
|
1162
1163
|
return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
|
|
@@ -1201,18 +1202,18 @@ var v2 = function() {
|
|
|
1201
1202
|
} } }, [r.product ? t("div", { staticClass: "p-1 text-xs font-semibold leading-none text-white border rounded shadow-lg bg-primary-500 border-primary-700/40", attrs: { slot: "badge" }, slot: "badge" }, [r.product.isPurchased ? t("BaseIcon", { attrs: { type: "check", size: "14", "stroke-width": "3" } }) : t("div", { domProps: { textContent: e._s(r.product.price) } })], 1) : e._e()]);
|
|
1202
1203
|
}), 1)], 1)];
|
|
1203
1204
|
} }], null, !1, 4229824708) })] : e._e(), t("DocumentRecent", { staticStyle: { width: "100%", "padding-bottom": "5em" }, on: { "use-doc-template": e.select, "save-template": e.openTemplateFormModal } }, [t("div", { staticClass: "section-title", staticStyle: { flex: "1 1 auto", "padding-bottom": "0.5em" } }, [t("div", [e._v(e._s(e.$t("recent")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("recentSubTitle")) + " ")])])])], 2)]);
|
|
1204
|
-
},
|
|
1205
|
-
C2,
|
|
1205
|
+
}, x2 = [], w2 = /* @__PURE__ */ c(
|
|
1206
1206
|
v2,
|
|
1207
1207
|
y2,
|
|
1208
|
+
x2,
|
|
1208
1209
|
!1,
|
|
1209
1210
|
null,
|
|
1210
1211
|
"b0c014da",
|
|
1211
1212
|
null,
|
|
1212
1213
|
null
|
|
1213
1214
|
);
|
|
1214
|
-
const
|
|
1215
|
-
const
|
|
1215
|
+
const b2 = w2.exports;
|
|
1216
|
+
const _2 = (i) => {
|
|
1216
1217
|
const e = Array(2).fill().map(() => d());
|
|
1217
1218
|
return [
|
|
1218
1219
|
{
|
|
@@ -1234,7 +1235,7 @@ const b2 = (i) => {
|
|
|
1234
1235
|
nodeId: e[1]
|
|
1235
1236
|
}
|
|
1236
1237
|
];
|
|
1237
|
-
},
|
|
1238
|
+
}, k2 = (i, e = "en") => [
|
|
1238
1239
|
{ key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("attachment_plural", { lng: e }).capitalize() },
|
|
1239
1240
|
{
|
|
1240
1241
|
key: `files-${i}`,
|
|
@@ -1243,13 +1244,13 @@ const b2 = (i) => {
|
|
|
1243
1244
|
$ref: `${f.api.baseUrl}/schemas/file/1.json`
|
|
1244
1245
|
}
|
|
1245
1246
|
}
|
|
1246
|
-
],
|
|
1247
|
+
], L2 = ({ document: i = null }) => {
|
|
1247
1248
|
const e = d(), { language: t } = i || {};
|
|
1248
1249
|
return {
|
|
1249
|
-
readView:
|
|
1250
|
-
validation:
|
|
1250
|
+
readView: _2(e),
|
|
1251
|
+
validation: k2(e, t)
|
|
1251
1252
|
};
|
|
1252
|
-
},
|
|
1253
|
+
}, $2 = () => [
|
|
1253
1254
|
{
|
|
1254
1255
|
itemId: "presentation",
|
|
1255
1256
|
itemType: "presentation",
|
|
@@ -1257,11 +1258,11 @@ const b2 = (i) => {
|
|
|
1257
1258
|
parentId: "0",
|
|
1258
1259
|
nodeId: d()
|
|
1259
1260
|
}
|
|
1260
|
-
],
|
|
1261
|
-
readView:
|
|
1261
|
+
], S2 = () => ({
|
|
1262
|
+
readView: $2(),
|
|
1262
1263
|
validation: []
|
|
1263
1264
|
// all relevant data is either within base doc or company settings etc
|
|
1264
|
-
}),
|
|
1265
|
+
}), T2 = () => {
|
|
1265
1266
|
const i = Array(2).fill().map(() => d());
|
|
1266
1267
|
return [
|
|
1267
1268
|
{
|
|
@@ -1284,19 +1285,19 @@ const b2 = (i) => {
|
|
|
1284
1285
|
// uniqid(),
|
|
1285
1286
|
}
|
|
1286
1287
|
];
|
|
1287
|
-
},
|
|
1288
|
+
}, D2 = (i = "en") => [
|
|
1288
1289
|
{
|
|
1289
1290
|
key: "multiGroupPricing-title",
|
|
1290
1291
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
1291
1292
|
defaultValue: h.t("components:document.chapters.multiGroupPricing.title", { lng: i })
|
|
1292
1293
|
}
|
|
1293
|
-
],
|
|
1294
|
+
], V2 = ({ document: i = null }) => {
|
|
1294
1295
|
const { language: e } = i || {};
|
|
1295
1296
|
return {
|
|
1296
|
-
readView:
|
|
1297
|
-
validation:
|
|
1297
|
+
readView: T2(),
|
|
1298
|
+
validation: D2(e)
|
|
1298
1299
|
};
|
|
1299
|
-
},
|
|
1300
|
+
}, M2 = () => [
|
|
1300
1301
|
{
|
|
1301
1302
|
itemId: "terms",
|
|
1302
1303
|
itemType: "termsDisclaimer",
|
|
@@ -1322,10 +1323,10 @@ const b2 = (i) => {
|
|
|
1322
1323
|
{ type: "null" }
|
|
1323
1324
|
]
|
|
1324
1325
|
}
|
|
1325
|
-
],
|
|
1326
|
-
readView:
|
|
1326
|
+
], I2 = () => ({
|
|
1327
|
+
readView: M2(),
|
|
1327
1328
|
validation: B2()
|
|
1328
|
-
}),
|
|
1329
|
+
}), F2 = () => {
|
|
1329
1330
|
const i = Array(5).fill().map(() => d());
|
|
1330
1331
|
return [
|
|
1331
1332
|
{
|
|
@@ -1374,7 +1375,7 @@ const b2 = (i) => {
|
|
|
1374
1375
|
nodeId: i[4]
|
|
1375
1376
|
}
|
|
1376
1377
|
];
|
|
1377
|
-
},
|
|
1378
|
+
}, H2 = () => ({
|
|
1378
1379
|
clients: [{
|
|
1379
1380
|
name: "Pernilla P.",
|
|
1380
1381
|
email: "pernilla@mail.se",
|
|
@@ -1384,20 +1385,20 @@ const b2 = (i) => {
|
|
|
1384
1385
|
deliveryTypes: ["email"],
|
|
1385
1386
|
answerMethod: { accept: "signature", deny: "button" }
|
|
1386
1387
|
}]
|
|
1387
|
-
}),
|
|
1388
|
+
}), A2 = (i = "en") => [
|
|
1388
1389
|
{ key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1389
1390
|
{ key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1390
1391
|
{ key: "partiesString", anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("components:document.chapters.parties.title", { lng: i }) }
|
|
1391
|
-
],
|
|
1392
|
+
], P2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
1392
1393
|
const { language: a } = e || {};
|
|
1393
1394
|
let n = null;
|
|
1394
|
-
return typeof t == "function" ? n = t() : i && (n =
|
|
1395
|
-
readView:
|
|
1396
|
-
validation:
|
|
1395
|
+
return typeof t == "function" ? n = t() : i && (n = H2()), {
|
|
1396
|
+
readView: F2(),
|
|
1397
|
+
validation: A2(a),
|
|
1397
1398
|
// Client / company will for now always exist on doc and in validation
|
|
1398
1399
|
...n && { data: n }
|
|
1399
1400
|
};
|
|
1400
|
-
},
|
|
1401
|
+
}, E2 = (i) => {
|
|
1401
1402
|
const e = Array(3).fill().map(() => d());
|
|
1402
1403
|
return [
|
|
1403
1404
|
{
|
|
@@ -1426,7 +1427,7 @@ const b2 = (i) => {
|
|
|
1426
1427
|
nodeId: e[2]
|
|
1427
1428
|
}
|
|
1428
1429
|
];
|
|
1429
|
-
},
|
|
1430
|
+
}, z2 = (i) => [
|
|
1430
1431
|
{
|
|
1431
1432
|
key: `estimatedTimeComplete-${i}`,
|
|
1432
1433
|
type: "object",
|
|
@@ -1447,20 +1448,20 @@ const b2 = (i) => {
|
|
|
1447
1448
|
}
|
|
1448
1449
|
}
|
|
1449
1450
|
}
|
|
1450
|
-
],
|
|
1451
|
+
], Z2 = (i) => ({
|
|
1451
1452
|
[`estimatedTimeComplete-${i}`]: {
|
|
1452
1453
|
value: 4,
|
|
1453
1454
|
unitType: "hour"
|
|
1454
1455
|
}
|
|
1455
|
-
}),
|
|
1456
|
+
}), O2 = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1456
1457
|
const t = d();
|
|
1457
1458
|
let a = null;
|
|
1458
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1459
|
-
readView:
|
|
1460
|
-
validation:
|
|
1459
|
+
return typeof e == "function" ? a = e(t) : i && (a = Z2(t)), {
|
|
1460
|
+
readView: E2(t),
|
|
1461
|
+
validation: z2(t),
|
|
1461
1462
|
...a && { data: a }
|
|
1462
1463
|
};
|
|
1463
|
-
},
|
|
1464
|
+
}, R2 = () => {
|
|
1464
1465
|
const i = Array(3).fill().map(() => d());
|
|
1465
1466
|
return [
|
|
1466
1467
|
{
|
|
@@ -1494,7 +1495,7 @@ const b2 = (i) => {
|
|
|
1494
1495
|
nodeId: i[2]
|
|
1495
1496
|
}
|
|
1496
1497
|
];
|
|
1497
|
-
},
|
|
1498
|
+
}, G2 = () => [
|
|
1498
1499
|
{
|
|
1499
1500
|
key: "estimatedWorkDates",
|
|
1500
1501
|
type: "object",
|
|
@@ -1503,10 +1504,10 @@ const b2 = (i) => {
|
|
|
1503
1504
|
endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
|
|
1504
1505
|
}
|
|
1505
1506
|
}
|
|
1506
|
-
],
|
|
1507
|
-
readView:
|
|
1508
|
-
validation:
|
|
1509
|
-
}),
|
|
1507
|
+
], U2 = () => ({
|
|
1508
|
+
readView: R2(),
|
|
1509
|
+
validation: G2()
|
|
1510
|
+
}), W2 = () => {
|
|
1510
1511
|
const i = Array(5).fill().map(() => d());
|
|
1511
1512
|
return [
|
|
1512
1513
|
{
|
|
@@ -1572,7 +1573,7 @@ const b2 = (i) => {
|
|
|
1572
1573
|
nodeId: i[4]
|
|
1573
1574
|
}
|
|
1574
1575
|
];
|
|
1575
|
-
},
|
|
1576
|
+
}, q2 = () => [
|
|
1576
1577
|
{
|
|
1577
1578
|
key: "extraWorkConstruction",
|
|
1578
1579
|
extraWorkConstruction: {
|
|
@@ -1596,11 +1597,11 @@ const b2 = (i) => {
|
|
|
1596
1597
|
}
|
|
1597
1598
|
}
|
|
1598
1599
|
}
|
|
1599
|
-
],
|
|
1600
|
-
readView:
|
|
1601
|
-
validation:
|
|
1600
|
+
], N2 = () => ({
|
|
1601
|
+
readView: W2(),
|
|
1602
|
+
validation: q2()
|
|
1602
1603
|
// Client / company will for now always exist on doc and in validation
|
|
1603
|
-
}),
|
|
1604
|
+
}), j2 = () => {
|
|
1604
1605
|
const i = Array(3).fill().map(() => d());
|
|
1605
1606
|
return [
|
|
1606
1607
|
{
|
|
@@ -1640,7 +1641,7 @@ const b2 = (i) => {
|
|
|
1640
1641
|
nodeId: i[2]
|
|
1641
1642
|
}
|
|
1642
1643
|
];
|
|
1643
|
-
},
|
|
1644
|
+
}, K2 = () => [
|
|
1644
1645
|
{
|
|
1645
1646
|
key: "extraWorkTimeImpact",
|
|
1646
1647
|
anyOf: [
|
|
@@ -1664,10 +1665,10 @@ const b2 = (i) => {
|
|
|
1664
1665
|
}
|
|
1665
1666
|
]
|
|
1666
1667
|
}
|
|
1667
|
-
],
|
|
1668
|
-
readView:
|
|
1669
|
-
validation:
|
|
1670
|
-
}),
|
|
1668
|
+
], Y2 = () => ({
|
|
1669
|
+
readView: j2(),
|
|
1670
|
+
validation: K2()
|
|
1671
|
+
}), Q2 = () => {
|
|
1671
1672
|
const i = Array(5).fill().map(() => d());
|
|
1672
1673
|
return [
|
|
1673
1674
|
{
|
|
@@ -1720,13 +1721,13 @@ const b2 = (i) => {
|
|
|
1720
1721
|
nodeId: i[4]
|
|
1721
1722
|
}
|
|
1722
1723
|
];
|
|
1723
|
-
},
|
|
1724
|
+
}, J2 = () => [
|
|
1724
1725
|
{ key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
|
|
1725
1726
|
{ key: "notBinding", type: "boolean" }
|
|
1726
|
-
],
|
|
1727
|
-
readView:
|
|
1728
|
-
validation:
|
|
1729
|
-
}),
|
|
1727
|
+
], X2 = () => ({
|
|
1728
|
+
readView: Q2(),
|
|
1729
|
+
validation: J2()
|
|
1730
|
+
}), ei = (i) => {
|
|
1730
1731
|
const e = Array(2).fill().map(() => d());
|
|
1731
1732
|
return [
|
|
1732
1733
|
{
|
|
@@ -1748,22 +1749,22 @@ const b2 = (i) => {
|
|
|
1748
1749
|
nodeId: e[1]
|
|
1749
1750
|
}
|
|
1750
1751
|
];
|
|
1751
|
-
},
|
|
1752
|
+
}, ti = (i) => [
|
|
1752
1753
|
{ key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: "" },
|
|
1753
1754
|
{ key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
|
|
1754
|
-
],
|
|
1755
|
+
], ii = (i) => ({
|
|
1755
1756
|
[`data.title-${i}`]: "My custom text",
|
|
1756
1757
|
[`data.content-${i}`]: "<p>First impressions matter. Make it count by sending beautiful proposals to your clients. Proposals that look great on any device. Proposals that help you to close with notifications and digital signatures.</p>"
|
|
1757
|
-
}),
|
|
1758
|
+
}), ai = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1758
1759
|
const t = d();
|
|
1759
1760
|
let a = null;
|
|
1760
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1761
|
-
readView:
|
|
1762
|
-
validation:
|
|
1761
|
+
return typeof e == "function" ? a = e(t) : i && (a = ii(t)), {
|
|
1762
|
+
readView: ei(t),
|
|
1763
|
+
validation: ti(t),
|
|
1763
1764
|
...a && { data: a },
|
|
1764
1765
|
onAddFnName: "conditionalOnAdd"
|
|
1765
1766
|
};
|
|
1766
|
-
},
|
|
1767
|
+
}, ni = (i) => [
|
|
1767
1768
|
{
|
|
1768
1769
|
itemId: "coverBlock",
|
|
1769
1770
|
itemType: "coverBlock",
|
|
@@ -1773,7 +1774,7 @@ const b2 = (i) => {
|
|
|
1773
1774
|
parentId: "0",
|
|
1774
1775
|
nodeId: d()
|
|
1775
1776
|
}
|
|
1776
|
-
],
|
|
1777
|
+
], si = (i, e = "en") => [
|
|
1777
1778
|
{
|
|
1778
1779
|
key: `coverBlock-${i}`,
|
|
1779
1780
|
defaultValue: {
|
|
@@ -1790,7 +1791,7 @@ const b2 = (i) => {
|
|
|
1790
1791
|
},
|
|
1791
1792
|
$ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
|
|
1792
1793
|
}
|
|
1793
|
-
],
|
|
1794
|
+
], oi = (i) => ({
|
|
1794
1795
|
[`data.coverBlock-${i}`]: {
|
|
1795
1796
|
text: "<h1>We know communication</h1>",
|
|
1796
1797
|
cover: {
|
|
@@ -1800,15 +1801,15 @@ const b2 = (i) => {
|
|
|
1800
1801
|
blur: 0
|
|
1801
1802
|
}
|
|
1802
1803
|
}
|
|
1803
|
-
}),
|
|
1804
|
+
}), li = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
1804
1805
|
const a = d(), { language: n } = e || {};
|
|
1805
1806
|
let s = null;
|
|
1806
|
-
return typeof t == "function" ? s = t(a) : i && (s =
|
|
1807
|
-
readView:
|
|
1808
|
-
validation:
|
|
1807
|
+
return typeof t == "function" ? s = t(a) : i && (s = oi(a)), {
|
|
1808
|
+
readView: ni(a),
|
|
1809
|
+
validation: si(a, n),
|
|
1809
1810
|
...s && { data: s }
|
|
1810
1811
|
};
|
|
1811
|
-
},
|
|
1812
|
+
}, ri = ({ language: i = "en" } = {}) => {
|
|
1812
1813
|
const e = (t) => h.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
|
|
1813
1814
|
lng: i
|
|
1814
1815
|
});
|
|
@@ -1953,7 +1954,7 @@ const b2 = (i) => {
|
|
|
1953
1954
|
})
|
|
1954
1955
|
}
|
|
1955
1956
|
];
|
|
1956
|
-
},
|
|
1957
|
+
}, ci = (i) => [
|
|
1957
1958
|
{
|
|
1958
1959
|
itemId: `header-${i}`,
|
|
1959
1960
|
itemType: "header",
|
|
@@ -1963,7 +1964,7 @@ const b2 = (i) => {
|
|
|
1963
1964
|
parentId: "0",
|
|
1964
1965
|
nodeId: d()
|
|
1965
1966
|
}
|
|
1966
|
-
],
|
|
1967
|
+
], di = (i, e = null) => {
|
|
1967
1968
|
const {
|
|
1968
1969
|
language: t = "en",
|
|
1969
1970
|
name: a = "",
|
|
@@ -1974,7 +1975,7 @@ const b2 = (i) => {
|
|
|
1974
1975
|
background: o,
|
|
1975
1976
|
priceSummaryBackground: l,
|
|
1976
1977
|
backgroundFilter: r
|
|
1977
|
-
} = n || {}, p = l || "hsl(228, 52%, 18%)", C =
|
|
1978
|
+
} = n || {}, p = l || "hsl(228, 52%, 18%)", C = n1.readability(p, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
|
|
1978
1979
|
return [
|
|
1979
1980
|
{
|
|
1980
1981
|
key: `header-${i}`,
|
|
@@ -2015,7 +2016,7 @@ const b2 = (i) => {
|
|
|
2015
2016
|
}
|
|
2016
2017
|
}
|
|
2017
2018
|
];
|
|
2018
|
-
},
|
|
2019
|
+
}, pi = (i) => ({
|
|
2019
2020
|
[`data.header-${i}`]: {
|
|
2020
2021
|
layout: "vertical",
|
|
2021
2022
|
baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
|
|
@@ -2045,15 +2046,15 @@ const b2 = (i) => {
|
|
|
2045
2046
|
}
|
|
2046
2047
|
]
|
|
2047
2048
|
}
|
|
2048
|
-
}),
|
|
2049
|
+
}), ui = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
2049
2050
|
const a = d();
|
|
2050
2051
|
let n = null;
|
|
2051
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
2052
|
-
readView:
|
|
2053
|
-
validation:
|
|
2052
|
+
return typeof t == "function" ? n = t(a) : i && (n = pi(a)), {
|
|
2053
|
+
readView: ci(a),
|
|
2054
|
+
validation: di(a, e),
|
|
2054
2055
|
...n && { data: n }
|
|
2055
2056
|
};
|
|
2056
|
-
},
|
|
2057
|
+
}, mi = ({ language: i = "en" } = {}) => {
|
|
2057
2058
|
const e = (t) => h.t(`components:account.documentForm.contentItems.header.${t}`, {
|
|
2058
2059
|
lng: i,
|
|
2059
2060
|
interpolation: { prefix: "__", suffix: "__" }
|
|
@@ -2353,7 +2354,7 @@ h.loadOptions({
|
|
|
2353
2354
|
}
|
|
2354
2355
|
}
|
|
2355
2356
|
});
|
|
2356
|
-
const
|
|
2357
|
+
const hi = (i) => {
|
|
2357
2358
|
const e = Array(2).fill().map(() => d());
|
|
2358
2359
|
return [
|
|
2359
2360
|
{
|
|
@@ -2378,7 +2379,7 @@ const mi = (i) => {
|
|
|
2378
2379
|
nodeId: e[1]
|
|
2379
2380
|
}
|
|
2380
2381
|
];
|
|
2381
|
-
},
|
|
2382
|
+
}, fi = (i, e = "en") => [
|
|
2382
2383
|
{
|
|
2383
2384
|
key: `packageGroups.${i}`,
|
|
2384
2385
|
validationKey: "packageGroups",
|
|
@@ -2398,11 +2399,11 @@ const mi = (i) => {
|
|
|
2398
2399
|
},
|
|
2399
2400
|
$ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
|
|
2400
2401
|
}
|
|
2401
|
-
],
|
|
2402
|
+
], gi = () => null, Ci = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
|
|
2402
2403
|
const a = d(), { language: n } = e || {};
|
|
2403
2404
|
let s = null;
|
|
2404
|
-
typeof t == "function" ? s = t(a) : i && (s =
|
|
2405
|
-
const o =
|
|
2405
|
+
typeof t == "function" ? s = t(a) : i && (s = gi());
|
|
2406
|
+
const o = hi(a), l = fi(a, n);
|
|
2406
2407
|
return {
|
|
2407
2408
|
readView: o,
|
|
2408
2409
|
validation: l,
|
|
@@ -2494,7 +2495,7 @@ h.loadOptions({
|
|
|
2494
2495
|
}
|
|
2495
2496
|
}
|
|
2496
2497
|
});
|
|
2497
|
-
const
|
|
2498
|
+
const vi = ({
|
|
2498
2499
|
language: i = "en",
|
|
2499
2500
|
currency: e = "USD",
|
|
2500
2501
|
_getters: t,
|
|
@@ -2567,7 +2568,7 @@ const Ci = ({
|
|
|
2567
2568
|
},
|
|
2568
2569
|
articles: [
|
|
2569
2570
|
...a,
|
|
2570
|
-
|
|
2571
|
+
y({
|
|
2571
2572
|
vat: n,
|
|
2572
2573
|
showPrice: s,
|
|
2573
2574
|
currency: e,
|
|
@@ -2696,7 +2697,7 @@ const Ci = ({
|
|
|
2696
2697
|
},
|
|
2697
2698
|
articles: [
|
|
2698
2699
|
...a,
|
|
2699
|
-
|
|
2700
|
+
y({
|
|
2700
2701
|
vat: n,
|
|
2701
2702
|
showPrice: s,
|
|
2702
2703
|
currency: e,
|
|
@@ -2704,7 +2705,7 @@ const Ci = ({
|
|
|
2704
2705
|
name: o("radio.artA"),
|
|
2705
2706
|
price: 1e5
|
|
2706
2707
|
}),
|
|
2707
|
-
|
|
2708
|
+
y({
|
|
2708
2709
|
vat: n,
|
|
2709
2710
|
showPrice: s,
|
|
2710
2711
|
currency: e,
|
|
@@ -2830,7 +2831,7 @@ const Ci = ({
|
|
|
2830
2831
|
},
|
|
2831
2832
|
articles: [
|
|
2832
2833
|
...a,
|
|
2833
|
-
|
|
2834
|
+
y({
|
|
2834
2835
|
vat: n,
|
|
2835
2836
|
showPrice: s,
|
|
2836
2837
|
currency: e,
|
|
@@ -2838,7 +2839,7 @@ const Ci = ({
|
|
|
2838
2839
|
name: o("checkbox.artBase"),
|
|
2839
2840
|
price: 1e5
|
|
2840
2841
|
}),
|
|
2841
|
-
|
|
2842
|
+
y({
|
|
2842
2843
|
vat: n,
|
|
2843
2844
|
showPrice: s,
|
|
2844
2845
|
currency: e,
|
|
@@ -2851,7 +2852,7 @@ const Ci = ({
|
|
|
2851
2852
|
}
|
|
2852
2853
|
}
|
|
2853
2854
|
];
|
|
2854
|
-
},
|
|
2855
|
+
}, yi = (i) => [
|
|
2855
2856
|
{
|
|
2856
2857
|
itemId: "embed",
|
|
2857
2858
|
itemType: "embed",
|
|
@@ -2865,7 +2866,7 @@ const Ci = ({
|
|
|
2865
2866
|
parentId: "0",
|
|
2866
2867
|
nodeId: d()
|
|
2867
2868
|
}
|
|
2868
|
-
],
|
|
2869
|
+
], xi = (i) => [
|
|
2869
2870
|
{
|
|
2870
2871
|
key: `embed-${i}`,
|
|
2871
2872
|
$ref: `${f.api.baseUrl}/schemas/embed/1.json`,
|
|
@@ -2874,12 +2875,12 @@ const Ci = ({
|
|
|
2874
2875
|
size: "small"
|
|
2875
2876
|
}
|
|
2876
2877
|
}
|
|
2877
|
-
],
|
|
2878
|
+
], wi = () => null, bi = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
2878
2879
|
const a = d();
|
|
2879
2880
|
let n = null;
|
|
2880
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
2881
|
-
readView:
|
|
2882
|
-
validation:
|
|
2881
|
+
return typeof t == "function" ? n = t(a) : i && (n = wi()), {
|
|
2882
|
+
readView: yi(a),
|
|
2883
|
+
validation: xi(a),
|
|
2883
2884
|
...n && { data: n }
|
|
2884
2885
|
};
|
|
2885
2886
|
};
|
|
@@ -2894,7 +2895,7 @@ h.loadOptions({
|
|
|
2894
2895
|
}
|
|
2895
2896
|
}
|
|
2896
2897
|
});
|
|
2897
|
-
const
|
|
2898
|
+
const _i = ({ language: i = "en" } = {}) => [
|
|
2898
2899
|
{
|
|
2899
2900
|
previewUrl: `
|
|
2900
2901
|
<div style="position: relative;">
|
|
@@ -3186,7 +3187,7 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3186
3187
|
}
|
|
3187
3188
|
})
|
|
3188
3189
|
}
|
|
3189
|
-
],
|
|
3190
|
+
], ki = (i) => [
|
|
3190
3191
|
{
|
|
3191
3192
|
itemId: "videoPlayer",
|
|
3192
3193
|
itemType: "videoPlayer",
|
|
@@ -3199,7 +3200,7 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3199
3200
|
parentId: "0",
|
|
3200
3201
|
nodeId: d()
|
|
3201
3202
|
}
|
|
3202
|
-
],
|
|
3203
|
+
], Li = (i) => [
|
|
3203
3204
|
{
|
|
3204
3205
|
key: `video-${i}`,
|
|
3205
3206
|
$ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
|
|
@@ -3210,7 +3211,7 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3210
3211
|
}
|
|
3211
3212
|
}
|
|
3212
3213
|
}
|
|
3213
|
-
],
|
|
3214
|
+
], $i = (i) => ({
|
|
3214
3215
|
[`data.video-${i}`]: {
|
|
3215
3216
|
size: "small",
|
|
3216
3217
|
video: {
|
|
@@ -3219,15 +3220,15 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3219
3220
|
id: "166JEb6qkr4"
|
|
3220
3221
|
}
|
|
3221
3222
|
}
|
|
3222
|
-
}),
|
|
3223
|
+
}), Si = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
3223
3224
|
const t = d();
|
|
3224
3225
|
let a = null;
|
|
3225
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
3226
|
-
readView:
|
|
3227
|
-
validation:
|
|
3226
|
+
return typeof e == "function" ? a = e(t) : i && (a = $i(t)), {
|
|
3227
|
+
readView: ki(t),
|
|
3228
|
+
validation: Li(t),
|
|
3228
3229
|
...a && { data: a }
|
|
3229
3230
|
};
|
|
3230
|
-
},
|
|
3231
|
+
}, Ti = ({ language: i = "en" } = {}) => [
|
|
3231
3232
|
{
|
|
3232
3233
|
previewUrl: `
|
|
3233
3234
|
<div style="position: relative;">
|
|
@@ -3429,34 +3430,34 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3429
3430
|
})
|
|
3430
3431
|
}
|
|
3431
3432
|
], O = {
|
|
3432
|
-
titleAndText2:
|
|
3433
|
-
attachments2:
|
|
3434
|
-
pdf:
|
|
3435
|
-
packageGroup: gi,
|
|
3436
|
-
multiGroupPricing: D2,
|
|
3437
|
-
coverBlock: oi,
|
|
3438
|
-
videoPlayer: $i,
|
|
3439
|
-
embed: wi,
|
|
3440
|
-
header: pi,
|
|
3441
|
-
answer: Be,
|
|
3442
|
-
terms: M2,
|
|
3443
|
-
parties: A2,
|
|
3444
|
-
custom: at,
|
|
3445
|
-
// legacy
|
|
3446
|
-
presentation: $2,
|
|
3447
|
-
estimatedTimeCompleted: Z2,
|
|
3448
|
-
estimatedWorkStartAndEndAtText: G2,
|
|
3449
|
-
extraWorkConstructionPricingList: q2,
|
|
3450
|
-
extraWorkTimeImpactText: K2,
|
|
3451
|
-
notBinding: J2
|
|
3452
|
-
}, R = {
|
|
3453
|
-
coverBlock: li,
|
|
3454
|
-
header: ui,
|
|
3433
|
+
titleAndText2: ai,
|
|
3434
|
+
attachments2: L2,
|
|
3435
|
+
pdf: De,
|
|
3455
3436
|
packageGroup: Ci,
|
|
3456
|
-
|
|
3437
|
+
multiGroupPricing: V2,
|
|
3438
|
+
coverBlock: li,
|
|
3457
3439
|
videoPlayer: Si,
|
|
3458
|
-
|
|
3459
|
-
|
|
3440
|
+
embed: bi,
|
|
3441
|
+
header: ui,
|
|
3442
|
+
answer: Ve,
|
|
3443
|
+
terms: I2,
|
|
3444
|
+
parties: P2,
|
|
3445
|
+
custom: a1,
|
|
3446
|
+
// legacy
|
|
3447
|
+
presentation: S2,
|
|
3448
|
+
estimatedTimeCompleted: O2,
|
|
3449
|
+
estimatedWorkStartAndEndAtText: U2,
|
|
3450
|
+
extraWorkConstructionPricingList: N2,
|
|
3451
|
+
extraWorkTimeImpactText: Y2,
|
|
3452
|
+
notBinding: X2
|
|
3453
|
+
}, R = {
|
|
3454
|
+
coverBlock: ri,
|
|
3455
|
+
header: mi,
|
|
3456
|
+
packageGroup: vi,
|
|
3457
|
+
embed: _i,
|
|
3458
|
+
videoPlayer: Ti,
|
|
3459
|
+
custom: i1
|
|
3460
|
+
}, Di = {
|
|
3460
3461
|
name: "AddBlock",
|
|
3461
3462
|
props: {
|
|
3462
3463
|
set: {
|
|
@@ -3477,22 +3478,22 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3477
3478
|
includeMockData: this.includeMockData,
|
|
3478
3479
|
emit: (...e) => this.$emit(...e)
|
|
3479
3480
|
}),
|
|
3480
|
-
getBlockPayload: (i) =>
|
|
3481
|
+
getBlockPayload: (i) => Be(i, this.set, O, this.includeMockdata)
|
|
3481
3482
|
});
|
|
3482
3483
|
}
|
|
3483
|
-
},
|
|
3484
|
+
}, Vi = null, Mi = null;
|
|
3484
3485
|
var Bi = /* @__PURE__ */ c(
|
|
3485
|
-
Ti,
|
|
3486
3486
|
Di,
|
|
3487
3487
|
Vi,
|
|
3488
|
+
Mi,
|
|
3488
3489
|
!1,
|
|
3489
3490
|
null,
|
|
3490
3491
|
null,
|
|
3491
3492
|
null,
|
|
3492
3493
|
null
|
|
3493
3494
|
);
|
|
3494
|
-
const
|
|
3495
|
-
const
|
|
3495
|
+
const ne = Bi.exports;
|
|
3496
|
+
const Ii = {
|
|
3496
3497
|
name: "Drawer",
|
|
3497
3498
|
props: {
|
|
3498
3499
|
value: {
|
|
@@ -3535,7 +3536,7 @@ const Mi = {
|
|
|
3535
3536
|
}
|
|
3536
3537
|
}
|
|
3537
3538
|
};
|
|
3538
|
-
var
|
|
3539
|
+
var Fi = function() {
|
|
3539
3540
|
var e = this, t = e._self._c;
|
|
3540
3541
|
return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
|
|
3541
3542
|
zIndex: e.zIndex
|
|
@@ -3551,18 +3552,18 @@ var Ii = function() {
|
|
|
3551
3552
|
boxShadow: e.boxShadow,
|
|
3552
3553
|
...e.contentStyle
|
|
3553
3554
|
} }, [e._t("default")], 2)]) : e._e()])], 1);
|
|
3554
|
-
},
|
|
3555
|
-
Mi,
|
|
3555
|
+
}, Hi = [], Ai = /* @__PURE__ */ c(
|
|
3556
3556
|
Ii,
|
|
3557
3557
|
Fi,
|
|
3558
|
+
Hi,
|
|
3558
3559
|
!1,
|
|
3559
3560
|
null,
|
|
3560
3561
|
"3cb13e4e",
|
|
3561
3562
|
null,
|
|
3562
3563
|
null
|
|
3563
3564
|
);
|
|
3564
|
-
const
|
|
3565
|
-
const
|
|
3565
|
+
const se = Ai.exports;
|
|
3566
|
+
const Pi = {
|
|
3566
3567
|
name: "DocumentSend",
|
|
3567
3568
|
i18nOptions: {
|
|
3568
3569
|
namespaces: "documentSend",
|
|
@@ -3586,19 +3587,19 @@ const Ai = {
|
|
|
3586
3587
|
}
|
|
3587
3588
|
},
|
|
3588
3589
|
components: {
|
|
3589
|
-
AddBlock:
|
|
3590
|
-
Drawer:
|
|
3591
|
-
SendForm:
|
|
3592
|
-
CCheckbox:
|
|
3593
|
-
BaseIcon:
|
|
3594
|
-
CButton:
|
|
3590
|
+
AddBlock: ne,
|
|
3591
|
+
Drawer: se,
|
|
3592
|
+
SendForm: s1,
|
|
3593
|
+
CCheckbox: Ie,
|
|
3594
|
+
BaseIcon: Fe,
|
|
3595
|
+
CButton: He
|
|
3595
3596
|
},
|
|
3596
3597
|
mixins: [
|
|
3597
|
-
|
|
3598
|
+
L([], {
|
|
3598
3599
|
useEmit: !1,
|
|
3599
3600
|
setFnName: "setFormValue"
|
|
3600
3601
|
}),
|
|
3601
|
-
|
|
3602
|
+
k
|
|
3602
3603
|
],
|
|
3603
3604
|
props: {
|
|
3604
3605
|
setFormValue: {
|
|
@@ -3651,7 +3652,7 @@ const Ai = {
|
|
|
3651
3652
|
!this.isPublicForm && ((i = window.App) != null && i.$fab) && (window.App.$fab.show = !0);
|
|
3652
3653
|
},
|
|
3653
3654
|
methods: {
|
|
3654
|
-
...
|
|
3655
|
+
...x({
|
|
3655
3656
|
createTemplate: m.DO_CREATE_TEMPLATE
|
|
3656
3657
|
}),
|
|
3657
3658
|
open() {
|
|
@@ -3674,7 +3675,7 @@ const Ai = {
|
|
|
3674
3675
|
}
|
|
3675
3676
|
}
|
|
3676
3677
|
};
|
|
3677
|
-
var
|
|
3678
|
+
var Ei = function() {
|
|
3678
3679
|
var e = this, t = e._self._c;
|
|
3679
3680
|
return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
|
|
3680
3681
|
e.isOpen = a;
|
|
@@ -3689,17 +3690,17 @@ var Pi = function() {
|
|
|
3689
3690
|
} }], null, !1, 2898075047) })], 1)]), e.isPublicForm ? t("CButton", { staticStyle: { height: "48px" }, attrs: { slot: "send", type: "secondary", wide: "" }, on: { click: e.onSaveDocument }, slot: "send" }, [e._v(" " + e._s(e.$t("signupToSend")) + " ")]) : e._e(), t("label", { staticClass: "text-gray-600", staticStyle: { display: "inline-flex", "align-items": "center", cursor: "pointer", "user-select": "none", "font-size": "12px", "font-weight": "500", "padding-top": "calc(1 * var(--rem))" }, attrs: { slot: "footer", for: "checkbox-save-as-temp" }, slot: "footer" }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(a) {
|
|
3690
3691
|
e.saveTemplate = a;
|
|
3691
3692
|
}, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)], 1)], 1)]) : e._e();
|
|
3692
|
-
},
|
|
3693
|
-
Ai,
|
|
3693
|
+
}, zi = [], Zi = /* @__PURE__ */ c(
|
|
3694
3694
|
Pi,
|
|
3695
3695
|
Ei,
|
|
3696
|
+
zi,
|
|
3696
3697
|
!1,
|
|
3697
3698
|
null,
|
|
3698
3699
|
"057840fe",
|
|
3699
3700
|
null,
|
|
3700
3701
|
null
|
|
3701
3702
|
);
|
|
3702
|
-
const
|
|
3703
|
+
const Oi = Zi.exports, Ri = {
|
|
3703
3704
|
name: "Draggable",
|
|
3704
3705
|
data() {
|
|
3705
3706
|
return {
|
|
@@ -3731,21 +3732,21 @@ const Zi = zi.exports, Oi = {
|
|
|
3731
3732
|
dragMousedown: this.onDragMouseDown
|
|
3732
3733
|
});
|
|
3733
3734
|
}
|
|
3734
|
-
},
|
|
3735
|
-
var
|
|
3736
|
-
Oi,
|
|
3735
|
+
}, Gi = null, Ui = null;
|
|
3736
|
+
var Wi = /* @__PURE__ */ c(
|
|
3737
3737
|
Ri,
|
|
3738
3738
|
Gi,
|
|
3739
|
+
Ui,
|
|
3739
3740
|
!1,
|
|
3740
3741
|
null,
|
|
3741
3742
|
null,
|
|
3742
3743
|
null,
|
|
3743
3744
|
null
|
|
3744
3745
|
);
|
|
3745
|
-
const
|
|
3746
|
-
const
|
|
3746
|
+
const qi = Wi.exports;
|
|
3747
|
+
const Ni = {
|
|
3747
3748
|
components: {
|
|
3748
|
-
Draggable:
|
|
3749
|
+
Draggable: qi
|
|
3749
3750
|
},
|
|
3750
3751
|
props: {
|
|
3751
3752
|
offset: {
|
|
@@ -3758,7 +3759,7 @@ const qi = {
|
|
|
3758
3759
|
}
|
|
3759
3760
|
}
|
|
3760
3761
|
};
|
|
3761
|
-
var
|
|
3762
|
+
var ji = function() {
|
|
3762
3763
|
var e = this, t = e._self._c;
|
|
3763
3764
|
return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
|
|
3764
3765
|
return [t("div", { staticClass: "popup", staticStyle: { position: "fixed", width: "280px", "border-radius": "calc(0.5 * var(--rem))", padding: "1em 1em 3em 1em", "font-size": "14px", "background-color": "white", "min-height": "400px", "box-shadow": "0 5px 30px -5px rgb(0, 0, 0, 0.2)", "z-index": "1000" }, style: {
|
|
@@ -3768,29 +3769,29 @@ var Ni = function() {
|
|
|
3768
3769
|
return e.$emit("close");
|
|
3769
3770
|
} } }), t("CButton", { staticStyle: { position: "absolute", right: "calc(2.25 * var(--rem))", top: "0", cursor: "grab" }, attrs: { icon: "handle", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { mousedown: a } }), t("div", { staticStyle: { "font-weight": "700", "font-size": "1.5em", "margin-bottom": "calc(1 * var(--rem))" } }, [e._v(" " + e._s(e.title) + " ")]), e._t("default")], 2)])];
|
|
3770
3771
|
} }], null, !0) })], 1);
|
|
3771
|
-
},
|
|
3772
|
-
qi,
|
|
3772
|
+
}, Ki = [], Yi = /* @__PURE__ */ c(
|
|
3773
3773
|
Ni,
|
|
3774
3774
|
ji,
|
|
3775
|
+
Ki,
|
|
3775
3776
|
!1,
|
|
3776
3777
|
null,
|
|
3777
3778
|
"9b75010b",
|
|
3778
3779
|
null,
|
|
3779
3780
|
null
|
|
3780
3781
|
);
|
|
3781
|
-
const
|
|
3782
|
-
const
|
|
3782
|
+
const oe = Yi.exports;
|
|
3783
|
+
const Qi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Qi), Ji = {
|
|
3783
3784
|
i18nOptions: {
|
|
3784
3785
|
namespaces: "common",
|
|
3785
3786
|
keyPrefix: "designLabels"
|
|
3786
3787
|
},
|
|
3787
3788
|
name: "Design",
|
|
3788
3789
|
components: {
|
|
3789
|
-
FormInputRow:
|
|
3790
|
-
DragWindow:
|
|
3790
|
+
FormInputRow: J,
|
|
3791
|
+
DragWindow: oe
|
|
3791
3792
|
},
|
|
3792
3793
|
mixins: [
|
|
3793
|
-
|
|
3794
|
+
L(
|
|
3794
3795
|
["css"],
|
|
3795
3796
|
{ useEmit: !1, setFnName: "set" }
|
|
3796
3797
|
)
|
|
@@ -4333,7 +4334,7 @@ const Yi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Yi), Qi = {
|
|
|
4333
4334
|
}
|
|
4334
4335
|
}
|
|
4335
4336
|
};
|
|
4336
|
-
var
|
|
4337
|
+
var Xi = function() {
|
|
4337
4338
|
var e = this, t = e._self._c;
|
|
4338
4339
|
return t("div", [t("div", { staticStyle: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, [t("div", { staticStyle: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, [e._v(" " + e._s(e.$t("typography")) + " ")]), e._l(e.typography, function(a) {
|
|
4339
4340
|
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
|
|
@@ -4352,18 +4353,18 @@ var Ji = function() {
|
|
|
4352
4353
|
})], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a, n) {
|
|
4353
4354
|
return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
|
|
4354
4355
|
}), 1) : e._e()], 1);
|
|
4355
|
-
},
|
|
4356
|
-
Qi,
|
|
4356
|
+
}, ea = [], ta = /* @__PURE__ */ c(
|
|
4357
4357
|
Ji,
|
|
4358
4358
|
Xi,
|
|
4359
|
+
ea,
|
|
4359
4360
|
!1,
|
|
4360
4361
|
null,
|
|
4361
4362
|
"930a4202",
|
|
4362
4363
|
null,
|
|
4363
4364
|
null
|
|
4364
4365
|
);
|
|
4365
|
-
const
|
|
4366
|
-
const
|
|
4366
|
+
const ia = ta.exports;
|
|
4367
|
+
const aa = {
|
|
4367
4368
|
name: "FieldsModal",
|
|
4368
4369
|
i18nOptions: {
|
|
4369
4370
|
namespaces: "FieldsModal",
|
|
@@ -4397,7 +4398,7 @@ const ia = {
|
|
|
4397
4398
|
}
|
|
4398
4399
|
},
|
|
4399
4400
|
components: {
|
|
4400
|
-
CField:
|
|
4401
|
+
CField: Q
|
|
4401
4402
|
},
|
|
4402
4403
|
props: {
|
|
4403
4404
|
document: {
|
|
@@ -4428,12 +4429,12 @@ const ia = {
|
|
|
4428
4429
|
validations: {
|
|
4429
4430
|
form: {
|
|
4430
4431
|
label: {
|
|
4431
|
-
required:
|
|
4432
|
+
required: M.required,
|
|
4432
4433
|
isUniqueLabel(i) {
|
|
4433
4434
|
return this.fields.reduce((t, { label: a }) => a === i ? !1 : t, !0);
|
|
4434
4435
|
}
|
|
4435
4436
|
},
|
|
4436
|
-
value: { required:
|
|
4437
|
+
value: { required: M.required }
|
|
4437
4438
|
}
|
|
4438
4439
|
},
|
|
4439
4440
|
computed: {
|
|
@@ -4473,12 +4474,12 @@ const ia = {
|
|
|
4473
4474
|
remove() {
|
|
4474
4475
|
if (!this.existingFieldId)
|
|
4475
4476
|
return;
|
|
4476
|
-
const i =
|
|
4477
|
+
const i = p1(this.document.fields, [this.existingFieldId]);
|
|
4477
4478
|
this.set({ key: "data.fields", value: i }), this.$emit("close");
|
|
4478
4479
|
}
|
|
4479
4480
|
}
|
|
4480
4481
|
};
|
|
4481
|
-
var
|
|
4482
|
+
var na = function() {
|
|
4482
4483
|
var e = this, t = e._self._c;
|
|
4483
4484
|
return t("div", { staticClass: "flex flex-col items-center w-full text-center bg-white font-inter", staticStyle: { padding: "2em", "border-radius": "10px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, [e._v(" " + e._s(e.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")) + " ")]), t("div", { staticStyle: { "margin-bottom": "0.25em", opacity: "0.65" } }, [e._v(" " + e._s(e.$t("description")) + " ")])]), t("form", { staticStyle: { width: "100%" }, on: { submit: function(a) {
|
|
4484
4485
|
return a.preventDefault(), e.submit.apply(null, arguments);
|
|
@@ -4489,18 +4490,18 @@ var aa = function() {
|
|
|
4489
4490
|
}, expression: "form.label" } })], 1), t("CField", { staticStyle: { width: "100%", "text-align": "left", "margin-bottom": "1em" }, attrs: { label: e.$t("value"), messages: e.messages.form.value, validator: e.$v.form.value, "label-position": "inside" } }, [t("CInput", { attrs: { placeholder: e.$t("valuePlaceholder"), filled: "" }, model: { value: e.form.value, callback: function(a) {
|
|
4490
4491
|
e.$set(e.form, "value", a);
|
|
4491
4492
|
}, expression: "form.value" } })], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { type: "secondary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:save")) }, on: { click: e.submit } }), e.existingFieldId ? t("CButton", { staticStyle: { "margin-top": "5px" }, attrs: { type: "none", pattern: "tertiary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:remove")) }, on: { click: e.remove } }) : e._e()], 1)]);
|
|
4492
|
-
},
|
|
4493
|
-
ia,
|
|
4493
|
+
}, sa = [], oa = /* @__PURE__ */ c(
|
|
4494
4494
|
aa,
|
|
4495
4495
|
na,
|
|
4496
|
+
sa,
|
|
4496
4497
|
!1,
|
|
4497
4498
|
null,
|
|
4498
4499
|
"5cc44007",
|
|
4499
4500
|
null,
|
|
4500
4501
|
null
|
|
4501
4502
|
);
|
|
4502
|
-
const
|
|
4503
|
-
const
|
|
4503
|
+
const la = oa.exports;
|
|
4504
|
+
const ra = {
|
|
4504
4505
|
i18nOptions: {
|
|
4505
4506
|
namespaces: "DocumentFormFields",
|
|
4506
4507
|
messages: {
|
|
@@ -4524,11 +4525,11 @@ const la = {
|
|
|
4524
4525
|
},
|
|
4525
4526
|
name: "DocumentFormFields",
|
|
4526
4527
|
components: {
|
|
4527
|
-
SmartList:
|
|
4528
|
+
SmartList: d1,
|
|
4528
4529
|
CAccordion: je,
|
|
4529
|
-
CField:
|
|
4530
|
+
CField: Q
|
|
4530
4531
|
},
|
|
4531
|
-
mixins: [
|
|
4532
|
+
mixins: [L()],
|
|
4532
4533
|
props: {
|
|
4533
4534
|
set: {
|
|
4534
4535
|
type: Function,
|
|
@@ -4603,7 +4604,7 @@ const la = {
|
|
|
4603
4604
|
},
|
|
4604
4605
|
openFieldModal({ existingFieldId: i }) {
|
|
4605
4606
|
this.$modal.show(
|
|
4606
|
-
|
|
4607
|
+
la,
|
|
4607
4608
|
{
|
|
4608
4609
|
document: this._document,
|
|
4609
4610
|
set: this.set,
|
|
@@ -4622,7 +4623,7 @@ const la = {
|
|
|
4622
4623
|
);
|
|
4623
4624
|
},
|
|
4624
4625
|
onCopyField(i) {
|
|
4625
|
-
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() =>
|
|
4626
|
+
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => Ae("info", this.$t("_common:copyMessage"))).catch((e) => $(e));
|
|
4626
4627
|
},
|
|
4627
4628
|
filterMethod(i, e) {
|
|
4628
4629
|
return e.filter((t) => t.label.toLowerCase().includes(i.toLowerCase()));
|
|
@@ -4633,7 +4634,7 @@ const la = {
|
|
|
4633
4634
|
}
|
|
4634
4635
|
}
|
|
4635
4636
|
};
|
|
4636
|
-
var
|
|
4637
|
+
var ca = function() {
|
|
4637
4638
|
var e = this, t = e._self._c;
|
|
4638
4639
|
return t("div", { staticStyle: { padding: "1em" } }, [t("div", { staticStyle: { margin: "15px 0" } }, [t("div", { staticStyle: { "font-size": "16px", "font-weight": "600" }, domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticStyle: { color: "hsl(0, 0%, 35%)" }, domProps: { textContent: e._s(e.$t("description")) } })]), t("CInput", { attrs: { placeholder: e.$t("_common:search"), filled: "", size: "small" }, model: { value: e.query, callback: function(a) {
|
|
4639
4640
|
e.query = a;
|
|
@@ -4678,18 +4679,18 @@ var ra = function() {
|
|
|
4678
4679
|
} } })], 1)], 1)]);
|
|
4679
4680
|
}) : t("div", { staticStyle: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" }, domProps: { textContent: e._s(e.$t("noResults")) } })], 2)]);
|
|
4680
4681
|
})], 2)], 1);
|
|
4681
|
-
},
|
|
4682
|
-
la,
|
|
4682
|
+
}, da = [], pa = /* @__PURE__ */ c(
|
|
4683
4683
|
ra,
|
|
4684
4684
|
ca,
|
|
4685
|
+
da,
|
|
4685
4686
|
!1,
|
|
4686
4687
|
null,
|
|
4687
4688
|
"916766d5",
|
|
4688
4689
|
null,
|
|
4689
4690
|
null
|
|
4690
4691
|
);
|
|
4691
|
-
const
|
|
4692
|
-
const
|
|
4692
|
+
const ua = pa.exports;
|
|
4693
|
+
const ma = {
|
|
4693
4694
|
i18nOptions: {
|
|
4694
4695
|
messages: {
|
|
4695
4696
|
en: {
|
|
@@ -4732,10 +4733,10 @@ const ua = {
|
|
|
4732
4733
|
},
|
|
4733
4734
|
name: "ExtensionTab",
|
|
4734
4735
|
components: {
|
|
4735
|
-
draggable:
|
|
4736
|
+
draggable: u1,
|
|
4736
4737
|
Spinner: Pe
|
|
4737
4738
|
},
|
|
4738
|
-
mixins: [
|
|
4739
|
+
mixins: [L([
|
|
4739
4740
|
"externalReferences",
|
|
4740
4741
|
"clients",
|
|
4741
4742
|
"articles"
|
|
@@ -4808,7 +4809,7 @@ const ua = {
|
|
|
4808
4809
|
this.isSearching = !1;
|
|
4809
4810
|
}
|
|
4810
4811
|
},
|
|
4811
|
-
search:
|
|
4812
|
+
search: I(async function(e) {
|
|
4812
4813
|
await this._search(e);
|
|
4813
4814
|
}, 750),
|
|
4814
4815
|
useSearchResult(i) {
|
|
@@ -4858,7 +4859,7 @@ const ua = {
|
|
|
4858
4859
|
}
|
|
4859
4860
|
},
|
|
4860
4861
|
cloneArticle(i) {
|
|
4861
|
-
return
|
|
4862
|
+
return y({
|
|
4862
4863
|
...i,
|
|
4863
4864
|
_uniqueId: void 0
|
|
4864
4865
|
});
|
|
@@ -4868,7 +4869,7 @@ const ua = {
|
|
|
4868
4869
|
const [e] = ((n = (a = this._document) == null ? void 0 : a.packageGroups) == null ? void 0 : n.packages) || [];
|
|
4869
4870
|
if (!(e != null && e.packageId))
|
|
4870
4871
|
return;
|
|
4871
|
-
const t =
|
|
4872
|
+
const t = y({
|
|
4872
4873
|
...i,
|
|
4873
4874
|
_uniqueId: void 0,
|
|
4874
4875
|
packageId: e.packageId
|
|
@@ -4880,7 +4881,7 @@ const ua = {
|
|
|
4880
4881
|
}
|
|
4881
4882
|
}
|
|
4882
4883
|
};
|
|
4883
|
-
var
|
|
4884
|
+
var ha = function() {
|
|
4884
4885
|
var e = this, t = e._self._c;
|
|
4885
4886
|
return t("div", { staticStyle: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, [e.allAuthenticatedCRMs.length > 1 ? t("CDropdown", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }, attrs: { position: "is-bottom-left" } }, [t("CButton", { attrs: { slot: "trigger", size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" }, slot: "trigger" }), e._l(e.allAuthenticatedCRMs, function(a) {
|
|
4886
4887
|
return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
|
|
@@ -4911,18 +4912,18 @@ var ma = function() {
|
|
|
4911
4912
|
return e.addArticle(a);
|
|
4912
4913
|
} } }, [t("div", { staticStyle: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" }, domProps: { textContent: e._s(a.name) } }), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "12px" } }, [e._v(" " + e._s(e.priceFormat(a.price || 0, { showZero: !1, currency: a.currency || "USD" })) + " · " + e._s(a.quantity || 0) + "x "), a.vat !== null ? [e._v(" · " + e._s(e._document.$t("vat").capitalize()) + " " + e._s(a.vat) + "% ")] : e._e()], 2)]);
|
|
4913
4914
|
}), 0) : t("div", { staticClass: "flex w-full text-gray-600", staticStyle: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "5px", "font-size": "12px", "border-radius": "5px", "line-height": "1.35" } }, [t("BaseIcon", { staticStyle: { margin: "1px 4px 0 0", "flex-shrink": "0" }, attrs: { type: "info", size: "13" } }), t("div", { domProps: { textContent: e._s(e.$t("noProducts", { type: e.dealType })) } })], 1)], 1) : e._e()] : t("div", { staticClass: "flex flex-col items-center justify-center w-full text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("BaseIcon", { staticClass: "text-primary-500", staticStyle: { "padding-bottom": "5px" }, attrs: { type: "info", size: "16" } }), t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("noCrm")) + " ")]), t("div", { staticClass: "text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("router-link", { staticClass: "text-primary-500", staticStyle: { "font-weight": "500" }, attrs: { to: { name: "settings" } } }, [e._v(" " + e._s(e.$t("noCrmAction")) + " ")])], 1)], 1)], 2);
|
|
4914
|
-
},
|
|
4915
|
-
ua,
|
|
4915
|
+
}, fa = [], ga = /* @__PURE__ */ c(
|
|
4916
4916
|
ma,
|
|
4917
4917
|
ha,
|
|
4918
|
+
fa,
|
|
4918
4919
|
!1,
|
|
4919
4920
|
null,
|
|
4920
4921
|
"b775e9f9",
|
|
4921
4922
|
null,
|
|
4922
4923
|
null
|
|
4923
4924
|
);
|
|
4924
|
-
const
|
|
4925
|
-
const
|
|
4925
|
+
const Ca = ga.exports;
|
|
4926
|
+
const va = {
|
|
4926
4927
|
i18nOptions: {
|
|
4927
4928
|
namespaces: "DocSettings",
|
|
4928
4929
|
messages: {
|
|
@@ -5010,8 +5011,8 @@ const Ca = {
|
|
|
5010
5011
|
},
|
|
5011
5012
|
name: "DocumentGeneralSettings",
|
|
5012
5013
|
components: {
|
|
5013
|
-
FormInputRow:
|
|
5014
|
-
DragWindow:
|
|
5014
|
+
FormInputRow: J,
|
|
5015
|
+
DragWindow: oe
|
|
5015
5016
|
},
|
|
5016
5017
|
props: {
|
|
5017
5018
|
offset: {
|
|
@@ -5019,7 +5020,7 @@ const Ca = {
|
|
|
5019
5020
|
required: !0
|
|
5020
5021
|
}
|
|
5021
5022
|
},
|
|
5022
|
-
mixins: [
|
|
5023
|
+
mixins: [L([
|
|
5023
5024
|
"tags",
|
|
5024
5025
|
"series",
|
|
5025
5026
|
"senderId",
|
|
@@ -5209,7 +5210,7 @@ const Ca = {
|
|
|
5209
5210
|
this.isPublicForm || await this.loadUsers();
|
|
5210
5211
|
},
|
|
5211
5212
|
methods: {
|
|
5212
|
-
...
|
|
5213
|
+
...x({
|
|
5213
5214
|
loadUsers: m.LOAD_COMPANY_USERS
|
|
5214
5215
|
}),
|
|
5215
5216
|
update(i, e) {
|
|
@@ -5227,7 +5228,7 @@ const Ca = {
|
|
|
5227
5228
|
}
|
|
5228
5229
|
}
|
|
5229
5230
|
};
|
|
5230
|
-
var
|
|
5231
|
+
var ya = function() {
|
|
5231
5232
|
var e = this, t = e._self._c;
|
|
5232
5233
|
return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
|
|
5233
5234
|
return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
|
|
@@ -5236,17 +5237,17 @@ var va = function() {
|
|
|
5236
5237
|
} } }, [e._l(e.priceOptions, function(a, n) {
|
|
5237
5238
|
return [a.type === "divider" ? t("div", { key: n, staticClass: "divider" }) : t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } })];
|
|
5238
5239
|
})], 2) : e._e()], 2);
|
|
5239
|
-
},
|
|
5240
|
-
Ca,
|
|
5240
|
+
}, xa = [], wa = /* @__PURE__ */ c(
|
|
5241
5241
|
va,
|
|
5242
5242
|
ya,
|
|
5243
|
+
xa,
|
|
5243
5244
|
!1,
|
|
5244
5245
|
null,
|
|
5245
5246
|
"eec61e30",
|
|
5246
5247
|
null,
|
|
5247
5248
|
null
|
|
5248
5249
|
);
|
|
5249
|
-
const
|
|
5250
|
+
const ba = wa.exports, _a = {
|
|
5250
5251
|
name: "MenuBlockConvertPopover",
|
|
5251
5252
|
props: {
|
|
5252
5253
|
target: {
|
|
@@ -5279,32 +5280,32 @@ const wa = xa.exports, ba = {
|
|
|
5279
5280
|
}
|
|
5280
5281
|
}
|
|
5281
5282
|
};
|
|
5282
|
-
var
|
|
5283
|
+
var ka = function() {
|
|
5283
5284
|
var e = this, t = e._self._c;
|
|
5284
5285
|
return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
|
|
5285
5286
|
return a.target !== a.currentTarget ? null : e.$emit("close");
|
|
5286
5287
|
} } }), t("transition", { attrs: { appear: "", mode: "out-in", "enter-active-class": "transition-all duration-100 ease-out", "enter-class": "-translate-x-4 opacity-0", "enter-to-class": "translate-x-0 opacity-100", "leave-active-class": "transition-opacity duration-100 ease-out", "leave-class": "opacity-100", "leave-to-class": "opacity-0" } }, [t("div", { ref: "popover", staticClass: "absolute z-10 p-4 text-sm -translate-y-1/2 bg-white rounded-lg shadow-xl w-52" }, [t("div", { staticClass: "pb-4", domProps: { innerHTML: e._s(e.$t("text")) } }), t("CButton", { attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: function(a) {
|
|
5287
5288
|
return e.$emit("convert");
|
|
5288
5289
|
} } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
|
|
5289
|
-
},
|
|
5290
|
-
ba,
|
|
5290
|
+
}, La = [], $a = /* @__PURE__ */ c(
|
|
5291
5291
|
_a,
|
|
5292
5292
|
ka,
|
|
5293
|
+
La,
|
|
5293
5294
|
!1,
|
|
5294
5295
|
null,
|
|
5295
5296
|
null,
|
|
5296
5297
|
null,
|
|
5297
5298
|
null
|
|
5298
5299
|
);
|
|
5299
|
-
const
|
|
5300
|
-
const
|
|
5300
|
+
const Sa = $a.exports;
|
|
5301
|
+
const Ta = B.component("ProBadge", {
|
|
5301
5302
|
name: "ProBadge",
|
|
5302
5303
|
render(i) {
|
|
5303
5304
|
return i("div", {
|
|
5304
5305
|
staticClass: "text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1"
|
|
5305
5306
|
}, "Pro");
|
|
5306
5307
|
}
|
|
5307
|
-
}),
|
|
5308
|
+
}), Da = {
|
|
5308
5309
|
name: "MenuBlocks",
|
|
5309
5310
|
i18nOptions: {
|
|
5310
5311
|
namespaces: "menuBlocks",
|
|
@@ -5375,12 +5376,12 @@ const Sa = k.component("ProBadge", {
|
|
|
5375
5376
|
},
|
|
5376
5377
|
components: {
|
|
5377
5378
|
simplebar: b,
|
|
5378
|
-
DragList:
|
|
5379
|
-
DragItem:
|
|
5380
|
-
AddBlock:
|
|
5381
|
-
IsPremiumPreStep:
|
|
5382
|
-
ProBadge:
|
|
5383
|
-
MenuBlockConvertPopover:
|
|
5379
|
+
DragList: j,
|
|
5380
|
+
DragItem: K,
|
|
5381
|
+
AddBlock: ne,
|
|
5382
|
+
IsPremiumPreStep: F,
|
|
5383
|
+
ProBadge: Ta,
|
|
5384
|
+
MenuBlockConvertPopover: Sa
|
|
5384
5385
|
},
|
|
5385
5386
|
props: {
|
|
5386
5387
|
_document: {
|
|
@@ -5409,7 +5410,7 @@ const Sa = k.component("ProBadge", {
|
|
|
5409
5410
|
default: () => ({ isPublicForm: !1 })
|
|
5410
5411
|
}
|
|
5411
5412
|
},
|
|
5412
|
-
mixins: [
|
|
5413
|
+
mixins: [k],
|
|
5413
5414
|
data() {
|
|
5414
5415
|
return {
|
|
5415
5416
|
subMenuToShow: null,
|
|
@@ -5724,7 +5725,7 @@ const Sa = k.component("ProBadge", {
|
|
|
5724
5725
|
if (this.mq === "sm")
|
|
5725
5726
|
return;
|
|
5726
5727
|
const { tooltips: i } = this, e = (s = (n = this.$el).getRootNode) == null ? void 0 : s.call(n), a = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body;
|
|
5727
|
-
this.tippyInstances =
|
|
5728
|
+
this.tippyInstances = c1(this.$el, {
|
|
5728
5729
|
target: "[data-tooltip-key]",
|
|
5729
5730
|
allowHTML: !0,
|
|
5730
5731
|
duration: [150, 0],
|
|
@@ -5749,7 +5750,7 @@ const Sa = k.component("ProBadge", {
|
|
|
5749
5750
|
i.destroy();
|
|
5750
5751
|
}) : this.tippyInstances.destroy && this.tippyInstances.destroy());
|
|
5751
5752
|
},
|
|
5752
|
-
setSubMenuState:
|
|
5753
|
+
setSubMenuState: I(function(e) {
|
|
5753
5754
|
this.activeSubMenu = e;
|
|
5754
5755
|
}, 100, { trailing: !0 }),
|
|
5755
5756
|
onMouseleaveDrawer() {
|
|
@@ -5784,7 +5785,7 @@ const Sa = k.component("ProBadge", {
|
|
|
5784
5785
|
}
|
|
5785
5786
|
}
|
|
5786
5787
|
};
|
|
5787
|
-
var
|
|
5788
|
+
var Va = function() {
|
|
5788
5789
|
var e = this, t = e._self._c;
|
|
5789
5790
|
return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
|
|
5790
5791
|
return e.$emit("block-added", a);
|
|
@@ -5823,18 +5824,18 @@ var Da = function() {
|
|
|
5823
5824
|
}), 1)], 1)], 1)])], 1)];
|
|
5824
5825
|
} }], null, !0) })];
|
|
5825
5826
|
} }]) });
|
|
5826
|
-
},
|
|
5827
|
-
Ta,
|
|
5827
|
+
}, Ma = [], Ba = /* @__PURE__ */ c(
|
|
5828
5828
|
Da,
|
|
5829
5829
|
Va,
|
|
5830
|
+
Ma,
|
|
5830
5831
|
!1,
|
|
5831
5832
|
null,
|
|
5832
5833
|
"2f285e04",
|
|
5833
5834
|
null,
|
|
5834
5835
|
null
|
|
5835
5836
|
);
|
|
5836
|
-
const
|
|
5837
|
-
const
|
|
5837
|
+
const Ia = Ba.exports;
|
|
5838
|
+
const Fa = {
|
|
5838
5839
|
name: "DocumentFormMenu",
|
|
5839
5840
|
i18nOptions: {
|
|
5840
5841
|
namespaces: "documentFormMenu",
|
|
@@ -5850,12 +5851,12 @@ const Ia = {
|
|
|
5850
5851
|
}
|
|
5851
5852
|
},
|
|
5852
5853
|
components: {
|
|
5853
|
-
Design:
|
|
5854
|
-
Fields:
|
|
5855
|
-
ExtensionTab:
|
|
5856
|
-
DocumentGeneralSettings:
|
|
5857
|
-
DocumentGuide: () => import("./index-
|
|
5858
|
-
MenuBlocks:
|
|
5854
|
+
Design: ia,
|
|
5855
|
+
Fields: ua,
|
|
5856
|
+
ExtensionTab: Ca,
|
|
5857
|
+
DocumentGeneralSettings: ba,
|
|
5858
|
+
DocumentGuide: () => import("./index-d71d06aa.js"),
|
|
5859
|
+
MenuBlocks: Ia,
|
|
5859
5860
|
Simplebar: b
|
|
5860
5861
|
},
|
|
5861
5862
|
props: {
|
|
@@ -5896,7 +5897,7 @@ const Ia = {
|
|
|
5896
5897
|
data() {
|
|
5897
5898
|
return {
|
|
5898
5899
|
showGuide: !1,
|
|
5899
|
-
showGuideNotification: !
|
|
5900
|
+
showGuideNotification: !H.getItem("hideFormGuideNotification"),
|
|
5900
5901
|
tab: "blocks"
|
|
5901
5902
|
};
|
|
5902
5903
|
},
|
|
@@ -5918,11 +5919,11 @@ const Ia = {
|
|
|
5918
5919
|
},
|
|
5919
5920
|
methods: {
|
|
5920
5921
|
openGuide() {
|
|
5921
|
-
this.showGuide = !0, this.showGuideNotification = !1,
|
|
5922
|
+
this.showGuide = !0, this.showGuideNotification = !1, H.setItem("hideFormGuideNotification", !0);
|
|
5922
5923
|
}
|
|
5923
5924
|
}
|
|
5924
5925
|
};
|
|
5925
|
-
var
|
|
5926
|
+
var Ha = function() {
|
|
5926
5927
|
var e = this, t = e._self._c;
|
|
5927
5928
|
return t("div", [t("div", { staticClass: "root menu-wrapper", style: [{ width: `${e.width}px` }, e.fixed && { zIndex: 999 }] }, [e.fixed ? t("div", { staticClass: "fixed inset-0", on: { click: function(a) {
|
|
5928
5929
|
return e.$emit("close");
|
|
@@ -5961,18 +5962,18 @@ var Fa = function() {
|
|
|
5961
5962
|
}, offset: e.width }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e()], 1)], 1), e.showGuide ? t("DocumentGuide", { on: { close: function(a) {
|
|
5962
5963
|
e.showGuide = !1;
|
|
5963
5964
|
} } }) : e._e()], 1)])]);
|
|
5964
|
-
},
|
|
5965
|
-
Ia,
|
|
5965
|
+
}, Aa = [], Pa = /* @__PURE__ */ c(
|
|
5966
5966
|
Fa,
|
|
5967
5967
|
Ha,
|
|
5968
|
+
Aa,
|
|
5968
5969
|
!1,
|
|
5969
5970
|
null,
|
|
5970
5971
|
"383e8c99",
|
|
5971
5972
|
null,
|
|
5972
5973
|
null
|
|
5973
5974
|
);
|
|
5974
|
-
const
|
|
5975
|
-
const
|
|
5975
|
+
const Ea = Pa.exports;
|
|
5976
|
+
const za = {
|
|
5976
5977
|
name: "BlockControlButtons",
|
|
5977
5978
|
i18nOptions: {
|
|
5978
5979
|
namespace: "blockControlButtons",
|
|
@@ -6004,7 +6005,7 @@ const Ea = {
|
|
|
6004
6005
|
}
|
|
6005
6006
|
}
|
|
6006
6007
|
};
|
|
6007
|
-
var
|
|
6008
|
+
var Za = function() {
|
|
6008
6009
|
var e = this, t = e._self._c;
|
|
6009
6010
|
return t("div", { staticClass: "flex flex-col gap-1 control-root" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6010
6011
|
return e.$emit("toggle-visible", !e.isVisible);
|
|
@@ -6015,21 +6016,21 @@ var za = function() {
|
|
|
6015
6016
|
} } }, [t("BaseIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
|
|
6016
6017
|
return e.$emit("remove");
|
|
6017
6018
|
} } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)] : e._e()], 2);
|
|
6018
|
-
},
|
|
6019
|
-
Ea,
|
|
6019
|
+
}, Oa = [], Ra = /* @__PURE__ */ c(
|
|
6020
6020
|
za,
|
|
6021
6021
|
Za,
|
|
6022
|
+
Oa,
|
|
6022
6023
|
!1,
|
|
6023
6024
|
null,
|
|
6024
6025
|
"79921f13",
|
|
6025
6026
|
null,
|
|
6026
6027
|
null
|
|
6027
6028
|
);
|
|
6028
|
-
const
|
|
6029
|
-
const
|
|
6029
|
+
const Ga = Ra.exports;
|
|
6030
|
+
const Ua = {
|
|
6030
6031
|
name: "DynamicBlock",
|
|
6031
6032
|
components: {
|
|
6032
|
-
BlockControlButtons:
|
|
6033
|
+
BlockControlButtons: Ga
|
|
6033
6034
|
},
|
|
6034
6035
|
props: {
|
|
6035
6036
|
isDragging: {
|
|
@@ -6078,7 +6079,7 @@ const Ga = {
|
|
|
6078
6079
|
}
|
|
6079
6080
|
}
|
|
6080
6081
|
};
|
|
6081
|
-
var
|
|
6082
|
+
var Wa = function() {
|
|
6082
6083
|
var e = this, t = e._self._c;
|
|
6083
6084
|
return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
|
|
6084
6085
|
{
|
|
@@ -6101,22 +6102,22 @@ var Ua = function() {
|
|
|
6101
6102
|
}, remove: function(a) {
|
|
6102
6103
|
return e.$emit("remove");
|
|
6103
6104
|
} } }) : e._e()], 1)]);
|
|
6104
|
-
},
|
|
6105
|
-
Ga,
|
|
6105
|
+
}, qa = [], Na = /* @__PURE__ */ c(
|
|
6106
6106
|
Ua,
|
|
6107
6107
|
Wa,
|
|
6108
|
+
qa,
|
|
6108
6109
|
!1,
|
|
6109
6110
|
null,
|
|
6110
6111
|
"60aa95ad",
|
|
6111
6112
|
null,
|
|
6112
6113
|
null
|
|
6113
6114
|
);
|
|
6114
|
-
const
|
|
6115
|
-
const
|
|
6115
|
+
const ja = Na.exports;
|
|
6116
|
+
const Ka = {
|
|
6116
6117
|
name: "DocumentDrawer",
|
|
6117
6118
|
components: {
|
|
6118
6119
|
simplebar: b,
|
|
6119
|
-
Drawer:
|
|
6120
|
+
Drawer: se
|
|
6120
6121
|
},
|
|
6121
6122
|
props: {
|
|
6122
6123
|
position: {
|
|
@@ -6138,7 +6139,7 @@ const ja = {
|
|
|
6138
6139
|
}
|
|
6139
6140
|
}
|
|
6140
6141
|
};
|
|
6141
|
-
var
|
|
6142
|
+
var Ya = function() {
|
|
6142
6143
|
var e = this, t = e._self._c;
|
|
6143
6144
|
return t("transition", { attrs: { name: e.fixed ? void 0 : "grow-anim", mode: "out-in" } }, [e.open ? t(e.fixed ? "drawer" : "div", e._b({ ref: "drawer", tag: "component", staticClass: "font-inter document-drawer-root", class: {
|
|
6144
6145
|
"is-sticky": !e.fixed
|
|
@@ -6150,18 +6151,18 @@ var Ka = function() {
|
|
|
6150
6151
|
padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
|
|
6151
6152
|
...e.fixedStyle
|
|
6152
6153
|
} }, [e._t("default")], 2)])])]) : e._e()], 1);
|
|
6153
|
-
},
|
|
6154
|
-
ja,
|
|
6154
|
+
}, Qa = [], Ja = /* @__PURE__ */ c(
|
|
6155
6155
|
Ka,
|
|
6156
6156
|
Ya,
|
|
6157
|
+
Qa,
|
|
6157
6158
|
!1,
|
|
6158
6159
|
null,
|
|
6159
6160
|
"f0a56edd",
|
|
6160
6161
|
null,
|
|
6161
6162
|
null
|
|
6162
6163
|
);
|
|
6163
|
-
const
|
|
6164
|
-
const
|
|
6164
|
+
const Xa = Ja.exports;
|
|
6165
|
+
const en = {
|
|
6165
6166
|
name: "DocumentFormViewRadio",
|
|
6166
6167
|
props: {
|
|
6167
6168
|
value: {
|
|
@@ -6174,24 +6175,24 @@ const Xa = {
|
|
|
6174
6175
|
}
|
|
6175
6176
|
}
|
|
6176
6177
|
};
|
|
6177
|
-
var
|
|
6178
|
+
var tn = function() {
|
|
6178
6179
|
var e = this, t = e._self._c;
|
|
6179
6180
|
return t("div", { staticClass: "nav-toggle font-inter" }, [t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "edit" }, on: { click: function(a) {
|
|
6180
6181
|
e.value === "preview" && e.$emit("input", "edit");
|
|
6181
6182
|
} } }, [e.small ? t("BaseIcon", { attrs: { type: "edit" } }) : [e._v(e._s(e.$t("edit")))]], 2), t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "preview" }, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
|
|
6182
6183
|
e.value === "edit" && e.$emit("input", "preview");
|
|
6183
6184
|
} } }, [e.small ? t("BaseIcon", { attrs: { type: "eye" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
|
|
6184
|
-
},
|
|
6185
|
-
Xa,
|
|
6185
|
+
}, an = [], nn = /* @__PURE__ */ c(
|
|
6186
6186
|
en,
|
|
6187
6187
|
tn,
|
|
6188
|
+
an,
|
|
6188
6189
|
!1,
|
|
6189
6190
|
null,
|
|
6190
6191
|
"bfd27279",
|
|
6191
6192
|
null,
|
|
6192
6193
|
null
|
|
6193
6194
|
);
|
|
6194
|
-
const
|
|
6195
|
+
const sn = nn.exports, on = {
|
|
6195
6196
|
name: "LogoBanner",
|
|
6196
6197
|
props: {
|
|
6197
6198
|
position: {
|
|
@@ -6209,44 +6210,44 @@ const nn = an.exports, sn = {
|
|
|
6209
6210
|
}
|
|
6210
6211
|
}
|
|
6211
6212
|
};
|
|
6212
|
-
var
|
|
6213
|
+
var ln = function() {
|
|
6213
6214
|
var e = this, t = e._self._c;
|
|
6214
6215
|
return t("div", { staticClass: "z-50 flex justify-end bottom-0 left-0 right-0 pb-[10px] px-[10px] pointer-events-none", class: e.position }, [t("a", { staticClass: "pointer-events-auto inline-flex items-center h-8 pl-1.5 pr-2 border rounded-md bg-black/80 border-white/30", attrs: { href: `https://${e.$t("_common:brand.domain")}?utm_source=document&utm_medium=logo-banner`, target: "_blank" } }, [t("div", { staticClass: "w-5 h-5 mr-2 overflow-hidden bg-white rounded" }, [t("img", { staticClass: "w-full h-full", attrs: { src: e.logoUrl, alt: e.$t("brand.name") } })]), t("div", { staticClass: "text-xs font-medium text-white" }, [e._v(" Made in " + e._s(e.$t("brand.name")) + " ")])])]);
|
|
6215
|
-
},
|
|
6216
|
-
sn,
|
|
6216
|
+
}, rn = [], cn = /* @__PURE__ */ c(
|
|
6217
6217
|
on,
|
|
6218
6218
|
ln,
|
|
6219
|
+
rn,
|
|
6219
6220
|
!1,
|
|
6220
6221
|
null,
|
|
6221
6222
|
null,
|
|
6222
6223
|
null,
|
|
6223
6224
|
null
|
|
6224
6225
|
);
|
|
6225
|
-
const
|
|
6226
|
-
const
|
|
6226
|
+
const dn = cn.exports;
|
|
6227
|
+
const pn = {
|
|
6227
6228
|
name: "DocumentFormNav"
|
|
6228
6229
|
};
|
|
6229
|
-
var
|
|
6230
|
+
var un = function() {
|
|
6230
6231
|
var e = this, t = e._self._c;
|
|
6231
6232
|
return t("div", { staticClass: "DocumentFormNav", staticStyle: { padding: "8px calc(1.5 * var(--rem))", position: "fixed", left: "0", top: "0", right: "0", "z-index": "98" } }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "inline-flex items-center flex-grow" }, [e._t("left")], 2), t("div", { staticClass: "inline-flex items-center justify-center flex-auto" }, [e._t("center")], 2), t("div", { staticClass: "inline-flex items-center justify-end flex-grow" }, [e._t("right")], 2)])]);
|
|
6232
|
-
},
|
|
6233
|
-
dn,
|
|
6233
|
+
}, mn = [], hn = /* @__PURE__ */ c(
|
|
6234
6234
|
pn,
|
|
6235
6235
|
un,
|
|
6236
|
+
mn,
|
|
6236
6237
|
!1,
|
|
6237
6238
|
null,
|
|
6238
6239
|
"05fc111c",
|
|
6239
6240
|
null,
|
|
6240
6241
|
null
|
|
6241
6242
|
);
|
|
6242
|
-
const
|
|
6243
|
-
const
|
|
6243
|
+
const fn = hn.exports;
|
|
6244
|
+
const le = (i, e, t = "$children") => {
|
|
6244
6245
|
if (!i)
|
|
6245
6246
|
return;
|
|
6246
6247
|
e(i);
|
|
6247
6248
|
const a = i[t];
|
|
6248
|
-
!a && !Array.isArray(a) || a.forEach((n) =>
|
|
6249
|
-
},
|
|
6249
|
+
!a && !Array.isArray(a) || a.forEach((n) => le(n, e));
|
|
6250
|
+
}, gn = {
|
|
6250
6251
|
i18nOptions: {
|
|
6251
6252
|
namespaces: "DocumentFormContainer",
|
|
6252
6253
|
messages: {
|
|
@@ -6263,18 +6264,18 @@ const re = (i, e, t = "$children") => {
|
|
|
6263
6264
|
name: "DocumentFormContainer",
|
|
6264
6265
|
components: {
|
|
6265
6266
|
WithDimensions: Je,
|
|
6266
|
-
DragList:
|
|
6267
|
-
DragItem:
|
|
6267
|
+
DragList: j,
|
|
6268
|
+
DragItem: K,
|
|
6268
6269
|
DynamicChapter: Xe,
|
|
6269
|
-
DocumentFormMenu:
|
|
6270
|
-
DynamicBlock:
|
|
6271
|
-
DocumentFormViewRadio:
|
|
6272
|
-
DocumentFormNav:
|
|
6273
|
-
DocumentDrawer:
|
|
6274
|
-
DocumentStyleContainer:
|
|
6270
|
+
DocumentFormMenu: Ea,
|
|
6271
|
+
DynamicBlock: ja,
|
|
6272
|
+
DocumentFormViewRadio: sn,
|
|
6273
|
+
DocumentFormNav: fn,
|
|
6274
|
+
DocumentDrawer: Xa,
|
|
6275
|
+
DocumentStyleContainer: e1,
|
|
6275
6276
|
simplebar: b,
|
|
6276
|
-
LogoBanner:
|
|
6277
|
-
IsPremium:
|
|
6277
|
+
LogoBanner: dn,
|
|
6278
|
+
IsPremium: Y
|
|
6278
6279
|
},
|
|
6279
6280
|
props: {
|
|
6280
6281
|
_document: {
|
|
@@ -6311,7 +6312,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6311
6312
|
default: !0
|
|
6312
6313
|
}
|
|
6313
6314
|
},
|
|
6314
|
-
mixins: [
|
|
6315
|
+
mixins: [k],
|
|
6315
6316
|
data() {
|
|
6316
6317
|
return {
|
|
6317
6318
|
drawerState: v,
|
|
@@ -6402,7 +6403,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6402
6403
|
},
|
|
6403
6404
|
methods: {
|
|
6404
6405
|
onAddBlockMount(i, e) {
|
|
6405
|
-
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() =>
|
|
6406
|
+
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => m1(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
|
|
6406
6407
|
},
|
|
6407
6408
|
onBlockToggleVisible(i, e) {
|
|
6408
6409
|
const a = [...this.readLayout].findIndex(
|
|
@@ -6423,7 +6424,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6423
6424
|
const a = i.itemId.split("-")[1];
|
|
6424
6425
|
this.removePackageGroup(a);
|
|
6425
6426
|
} else
|
|
6426
|
-
|
|
6427
|
+
le(i, (n) => {
|
|
6427
6428
|
n.value && Object.values(n.value).forEach((s) => {
|
|
6428
6429
|
this.removeFormKeyValue(`${s}`);
|
|
6429
6430
|
let o = s.replace(/^data.(?!properties)/g, "data.properties.");
|
|
@@ -6433,7 +6434,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6433
6434
|
this.removeFormKeyValue(r);
|
|
6434
6435
|
});
|
|
6435
6436
|
}, "children");
|
|
6436
|
-
|
|
6437
|
+
T([this.nestedReadLayout[e]]).forEach((a) => {
|
|
6437
6438
|
const n = this.readLayout.findIndex((s) => s.nodeId === a.nodeId);
|
|
6438
6439
|
this.removeFormValue(`template.views.read.nodes[${n}]`);
|
|
6439
6440
|
});
|
|
@@ -6456,7 +6457,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6456
6457
|
const n = Oe(this.nestedReadLayout, e, t);
|
|
6457
6458
|
this.setFormValue({
|
|
6458
6459
|
key: "template.views.read.nodes",
|
|
6459
|
-
value:
|
|
6460
|
+
value: T(n)
|
|
6460
6461
|
});
|
|
6461
6462
|
} else if (!e && t !== null) {
|
|
6462
6463
|
const {
|
|
@@ -6468,20 +6469,20 @@ const re = (i, e, t = "$children") => {
|
|
|
6468
6469
|
readView: r,
|
|
6469
6470
|
validation: p,
|
|
6470
6471
|
data: C,
|
|
6471
|
-
onAddFnName:
|
|
6472
|
+
onAddFnName: S = "onAdd"
|
|
6472
6473
|
} = s({ sectionKey: n, document: this._document, contentData: l });
|
|
6473
6474
|
o({ validation: p, data: C });
|
|
6474
|
-
const
|
|
6475
|
+
const re = Re({ tree: r }), ce = [
|
|
6475
6476
|
...this.nestedReadLayout.slice(0, t),
|
|
6476
|
-
...
|
|
6477
|
+
...re,
|
|
6477
6478
|
...this.nestedReadLayout.slice(t)
|
|
6478
6479
|
];
|
|
6479
6480
|
this.setFormValue({
|
|
6480
6481
|
key: "template.views.read.nodes",
|
|
6481
|
-
value:
|
|
6482
|
+
value: T(ce)
|
|
6482
6483
|
});
|
|
6483
|
-
const [{ nodeId:
|
|
6484
|
-
this.onAddRedis[
|
|
6484
|
+
const [{ nodeId: de }] = r;
|
|
6485
|
+
this.onAddRedis[de] = S;
|
|
6485
6486
|
}
|
|
6486
6487
|
},
|
|
6487
6488
|
shouldAnimateDrop(i) {
|
|
@@ -6489,7 +6490,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6489
6490
|
}
|
|
6490
6491
|
}
|
|
6491
6492
|
};
|
|
6492
|
-
var
|
|
6493
|
+
var Cn = function() {
|
|
6493
6494
|
var e = this, t = e._self._c;
|
|
6494
6495
|
return t("div", { staticStyle: { overflow: "auto", height: "100vh" } }, [t("div", { staticClass: "flex container-root font-inter", class: {
|
|
6495
6496
|
"is-edit-view": e.isEditView,
|
|
@@ -6549,39 +6550,39 @@ var gn = function() {
|
|
|
6549
6550
|
return e.onBlockMove(p, r);
|
|
6550
6551
|
}, "toggle-visible": function(p) {
|
|
6551
6552
|
return e.onBlockToggleVisible(l, p);
|
|
6552
|
-
} } }, [t("DynamicChapter", { attrs: { "component-name": l.componentName, "component-props": { ...l.props, _document: e._document, _value: l.value }, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: p, value: C, options:
|
|
6553
|
+
} } }, [t("DynamicChapter", { attrs: { "component-name": l.componentName, "component-props": { ...l.props, _document: e._document, _value: l.value }, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: p, value: C, options: S }) => e.setFormValue({ key: p, value: C, options: S }), "on-remove": ({ key: p }) => e.removeFormValue(p), "on-mount": (p) => e.onAddBlockMount(l.nodeId, p) } })], 1)], 1);
|
|
6553
6554
|
}), 1) : e._e(), e.canShowBanner ? t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ isProLike: l }) {
|
|
6554
6555
|
return [!e.isEditView && !l ? t("LogoBanner", { attrs: { position: "sticky" } }) : e._e()];
|
|
6555
6556
|
} }], null, !0) }) : e._e()], 1);
|
|
6556
6557
|
} }]) })], 1)], 1)], 1), t("DocumentDrawer", { key: "settingsDrawer", attrs: { id: "settingsDrawer", open: e.drawerState.showRight, fixed: !0, position: "right" }, on: { "update:open": function(a) {
|
|
6557
6558
|
return e.$set(e.drawerState, "showRight", a);
|
|
6558
6559
|
} } }, [t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
|
|
6559
|
-
},
|
|
6560
|
+
}, vn = [function() {
|
|
6560
6561
|
var i = this, e = i._self._c;
|
|
6561
6562
|
return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
|
|
6562
|
-
}],
|
|
6563
|
-
fn,
|
|
6563
|
+
}], yn = /* @__PURE__ */ c(
|
|
6564
6564
|
gn,
|
|
6565
6565
|
Cn,
|
|
6566
|
+
vn,
|
|
6566
6567
|
!1,
|
|
6567
6568
|
null,
|
|
6568
6569
|
"e54004e2",
|
|
6569
6570
|
null,
|
|
6570
6571
|
null
|
|
6571
6572
|
);
|
|
6572
|
-
const
|
|
6573
|
+
const xn = yn.exports, D = B.observable({
|
|
6573
6574
|
canEdit: !1,
|
|
6574
6575
|
isForm: !0,
|
|
6575
6576
|
setFormValue: null
|
|
6576
|
-
}),
|
|
6577
|
+
}), wn = {
|
|
6577
6578
|
name: "DocumentForm",
|
|
6578
6579
|
components: {
|
|
6579
|
-
DocumentFormContainer:
|
|
6580
|
-
IsPremium:
|
|
6581
|
-
IsPremiumPreStep:
|
|
6582
|
-
DocumentSend:
|
|
6580
|
+
DocumentFormContainer: xn,
|
|
6581
|
+
IsPremium: Y,
|
|
6582
|
+
IsPremiumPreStep: F,
|
|
6583
|
+
DocumentSend: Oi
|
|
6583
6584
|
},
|
|
6584
|
-
mixins: [
|
|
6585
|
+
mixins: [l1({ currentElement: null }), r1],
|
|
6585
6586
|
props: {
|
|
6586
6587
|
document: {
|
|
6587
6588
|
type: Object,
|
|
@@ -6628,7 +6629,7 @@ const yn = vn.exports, V = k.observable({
|
|
|
6628
6629
|
default: !0
|
|
6629
6630
|
}
|
|
6630
6631
|
},
|
|
6631
|
-
provide: () => ({ viewSettings:
|
|
6632
|
+
provide: () => ({ viewSettings: D }),
|
|
6632
6633
|
data() {
|
|
6633
6634
|
return {
|
|
6634
6635
|
view: "edit",
|
|
@@ -6639,7 +6640,7 @@ const yn = vn.exports, V = k.observable({
|
|
|
6639
6640
|
canEdit: {
|
|
6640
6641
|
immediate: !0,
|
|
6641
6642
|
handler(i) {
|
|
6642
|
-
|
|
6643
|
+
D.canEdit = !!i;
|
|
6643
6644
|
}
|
|
6644
6645
|
}
|
|
6645
6646
|
},
|
|
@@ -6653,7 +6654,7 @@ const yn = vn.exports, V = k.observable({
|
|
|
6653
6654
|
}
|
|
6654
6655
|
},
|
|
6655
6656
|
created() {
|
|
6656
|
-
this.setFormValue && (
|
|
6657
|
+
this.setFormValue && (D.setFormValue = this.setDocValue);
|
|
6657
6658
|
},
|
|
6658
6659
|
methods: {
|
|
6659
6660
|
isValid() {
|
|
@@ -6668,7 +6669,7 @@ const yn = vn.exports, V = k.observable({
|
|
|
6668
6669
|
},
|
|
6669
6670
|
async saveAsTemplate() {
|
|
6670
6671
|
this.document && this.$modal.show(
|
|
6671
|
-
|
|
6672
|
+
ie,
|
|
6672
6673
|
{
|
|
6673
6674
|
document: this.document,
|
|
6674
6675
|
onSaveTemplate: this.onSaveTemplate
|
|
@@ -6685,7 +6686,7 @@ const yn = vn.exports, V = k.observable({
|
|
|
6685
6686
|
}
|
|
6686
6687
|
}
|
|
6687
6688
|
};
|
|
6688
|
-
var
|
|
6689
|
+
var bn = function() {
|
|
6689
6690
|
var e = this, t = e._self._c;
|
|
6690
6691
|
return e.document ? t("div", { staticClass: "flex flex-col w-screen bg-white" }, [t("DocumentFormContainer", { attrs: { _document: e.document, view: e.view, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "remove-form-key-value": e.removeDocKeyValue, close: e.close, "go-back": e.goBack, "can-show-banner": e.canShowBanner }, on: { "update:view": function(a) {
|
|
6691
6692
|
e.view = a;
|
|
@@ -6707,113 +6708,20 @@ var wn = function() {
|
|
|
6707
6708
|
reminders: "data.reminders",
|
|
6708
6709
|
name: "data.name"
|
|
6709
6710
|
}, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } }), e.showDrawer ? t("portal", { attrs: { to: "drawer-content" } }) : e._e()], 1) : e._e();
|
|
6710
|
-
},
|
|
6711
|
-
xn,
|
|
6711
|
+
}, _n = [], kn = /* @__PURE__ */ c(
|
|
6712
6712
|
wn,
|
|
6713
6713
|
bn,
|
|
6714
|
+
_n,
|
|
6714
6715
|
!1,
|
|
6715
6716
|
null,
|
|
6716
6717
|
null,
|
|
6717
6718
|
null,
|
|
6718
6719
|
null
|
|
6719
6720
|
);
|
|
6720
|
-
const
|
|
6721
|
-
const
|
|
6722
|
-
name: "ClientLinks",
|
|
6723
|
-
props: {
|
|
6724
|
-
id: {
|
|
6725
|
-
type: String,
|
|
6726
|
-
required: !0
|
|
6727
|
-
}
|
|
6728
|
-
},
|
|
6729
|
-
i18nOptions: {
|
|
6730
|
-
namespaces: "ClientLinks",
|
|
6731
|
-
messages: {
|
|
6732
|
-
en: {
|
|
6733
|
-
title: "Document links",
|
|
6734
|
-
text: "Share the document links below with your recipients. Each recipient has their own unique link.",
|
|
6735
|
-
copied: "Link copied to clipboard",
|
|
6736
|
-
tooltip: "Copy link",
|
|
6737
|
-
placeholder: "No links available.",
|
|
6738
|
-
hint: "Note that visting a link will trigger a viewed event in the events timeline."
|
|
6739
|
-
},
|
|
6740
|
-
sv: {
|
|
6741
|
-
title: "Dokumentlänkar",
|
|
6742
|
-
text: "Dela dokumentlänkarna nedan med dina mottagare. Varje mottagare har sin egen unika länk.",
|
|
6743
|
-
copied: "Länkt kopierat till urklipp",
|
|
6744
|
-
tooltip: "Kopiera länk",
|
|
6745
|
-
placeholder: "Inga länkar finns tillgängliga.",
|
|
6746
|
-
hint: "Notera att ett sidbesök på en länk kommer att skapa en visad-händelse i tidslinjen."
|
|
6747
|
-
}
|
|
6748
|
-
}
|
|
6749
|
-
},
|
|
6750
|
-
computed: {
|
|
6751
|
-
...g({
|
|
6752
|
-
docById: "documents2/byId"
|
|
6753
|
-
}),
|
|
6754
|
-
document() {
|
|
6755
|
-
return this.docById(this.id);
|
|
6756
|
-
},
|
|
6757
|
-
clients() {
|
|
6758
|
-
if (!this.document)
|
|
6759
|
-
return [];
|
|
6760
|
-
const { clients: i } = this.document;
|
|
6761
|
-
return i.map((e) => ({
|
|
6762
|
-
...e,
|
|
6763
|
-
primaryTitle: e.name,
|
|
6764
|
-
secondaryTitle: e.type === "company" ? e.companyName : ""
|
|
6765
|
-
}));
|
|
6766
|
-
}
|
|
6767
|
-
},
|
|
6768
|
-
created() {
|
|
6769
|
-
this.loadDocument({ id: this.id });
|
|
6770
|
-
},
|
|
6771
|
-
methods: {
|
|
6772
|
-
...y({
|
|
6773
|
-
loadDocument: m.LOAD_DOCUMENT2
|
|
6774
|
-
}),
|
|
6775
|
-
copyToClipboard(i) {
|
|
6776
|
-
i.target.previousElementSibling.select(), document.execCommand("copy", !1), j("info", this.$t("copied"));
|
|
6777
|
-
}
|
|
6778
|
-
}
|
|
6779
|
-
};
|
|
6780
|
-
var $n = function() {
|
|
6781
|
-
var e = this, t = e._self._c;
|
|
6782
|
-
return t("div", { staticClass: "font-inter", staticStyle: { "background-color": "white", "border-radius": "10px", overflow: "hidden" } }, [t("div", { staticStyle: { padding: "40px 30px", position: "relative" } }, [t("CButton", { staticStyle: { position: "absolute", right: "1em", top: "1em", color: "hsl(0, 0%, 55%)" }, attrs: { icon: "x", circle: "", size: "normal" }, on: { click: function(a) {
|
|
6783
|
-
return e.$emit("close");
|
|
6784
|
-
} } }), t("div", { staticStyle: { padding: "0 0 2.5em" } }, [t("div", { staticClass: "x-title", domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticClass: "x-text", domProps: { textContent: e._s(e.$t("text")) } })]), e.clients.length ? e._l(e.clients, function(a, n) {
|
|
6785
|
-
return t("div", { key: n, staticClass: "client-card" }, [t("div", { staticStyle: { padding: "4px 6px 8px 6px" } }, [t("div", { staticClass: "client-title truncate-text" }, [e._v(" " + e._s(a.primaryTitle) + " "), a.secondaryTitle ? t("span", { staticStyle: { opacity: "0.5", "padding-left": "0.125ch" } }, [e._v("· " + e._s(a.secondaryTitle))]) : e._e()]), a.documentRole ? t("div", { domProps: { textContent: e._s(e.$t(`_common:documentRole.${a.documentRole}.label`)) } }) : e._e(), t("div", [a.email ? t("a", { attrs: { href: `mailto:${a.email}?&body=${a.docLink}` } }, [e._v(e._s(a.email))]) : e._e(), a.email && a.cellphone ? t("span", { staticStyle: { padding: "0 0.5ch" } }, [e._v("·")]) : e._e(), a.cellphone ? t("a", { attrs: { href: `sms:${a.cellphone}?&body=${a.docLink}` } }, [t("CPhoneFormat", { attrs: { phone: a.cellphone, region: a.cellphoneRegion } })], 1) : e._e()])]), t("div", { staticStyle: { display: "flex", position: "relative" } }, [t("input", { ref: "key", refInFor: !0, staticClass: "link-field truncate-text", attrs: { placeholder: e.$t("placeholder"), type: "text", readonly: "readonly" }, domProps: { value: a.docLink } }), t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("tooltip"), expression: "$t('tooltip')" }], staticClass: "clipboard-button", on: { click: e.copyToClipboard } }, [t("BaseIcon", { staticStyle: { "pointer-events": "none" }, attrs: { type: "copy", size: "17" } })], 1)])]);
|
|
6786
|
-
}) : t("div", { staticStyle: { padding: "2em", "font-size": "14px", "text-align": "center", color: "hsl(0, 0%, 55%)", border: "1px solid hsl(0, 0%, 88%)", "border-radius": "6px" }, domProps: { textContent: e._s(e.$t("placeholder")) } }), t("div", { staticClass: "x-hint" }, [t("BaseIcon", { staticClass: "text-primary-500", staticStyle: { flex: "0 0 auto", "margin-right": "8px", "margin-top": "3px" }, attrs: { type: "info", size: "16" } }), t("div", { domProps: { textContent: e._s(e.$t("hint")) } })], 1)], 2)]);
|
|
6787
|
-
}, Sn = [], Tn = /* @__PURE__ */ c(
|
|
6788
|
-
Ln,
|
|
6789
|
-
$n,
|
|
6790
|
-
Sn,
|
|
6791
|
-
!1,
|
|
6792
|
-
null,
|
|
6793
|
-
"791a9a8f",
|
|
6794
|
-
null,
|
|
6795
|
-
null
|
|
6796
|
-
);
|
|
6797
|
-
const Dn = Tn.exports, Vn = Dn, Bn = ({ id: i }) => {
|
|
6798
|
-
if (!k.prototype.$modal)
|
|
6799
|
-
throw Error("Open client modal requires plugin vue-js-modal");
|
|
6800
|
-
k.prototype.$modal.show(
|
|
6801
|
-
Vn,
|
|
6802
|
-
{
|
|
6803
|
-
id: i
|
|
6804
|
-
},
|
|
6805
|
-
{
|
|
6806
|
-
adaptive: !0,
|
|
6807
|
-
maxWidth: 400,
|
|
6808
|
-
width: "90%",
|
|
6809
|
-
height: "auto",
|
|
6810
|
-
scrollable: !0
|
|
6811
|
-
}
|
|
6812
|
-
);
|
|
6813
|
-
};
|
|
6814
|
-
const Mn = {
|
|
6721
|
+
const Ln = kn.exports;
|
|
6722
|
+
const $n = {
|
|
6815
6723
|
name: "DocumentPostSendStep",
|
|
6816
|
-
mixins: [
|
|
6724
|
+
mixins: [k],
|
|
6817
6725
|
i18nOptions: {
|
|
6818
6726
|
namespaces: "PostDocumentSend",
|
|
6819
6727
|
messages: {
|
|
@@ -6848,7 +6756,7 @@ const Mn = {
|
|
|
6848
6756
|
return this.mq === "sm" ? "100%" : "auto";
|
|
6849
6757
|
},
|
|
6850
6758
|
usesManualDelivery() {
|
|
6851
|
-
const i =
|
|
6759
|
+
const i = V(this.document);
|
|
6852
6760
|
return !i.sms && !i.email;
|
|
6853
6761
|
}
|
|
6854
6762
|
},
|
|
@@ -6857,18 +6765,18 @@ const Mn = {
|
|
|
6857
6765
|
(i = this.document) != null && i.senderClient ? await this.senderAnswer() : await this.onSend();
|
|
6858
6766
|
},
|
|
6859
6767
|
methods: {
|
|
6860
|
-
...
|
|
6768
|
+
...x({
|
|
6861
6769
|
updateDocument: m.DO_UPDATE_DOCUMENT2,
|
|
6862
6770
|
answerDocument: m.ANSWER_OWN_DOCUMENT2,
|
|
6863
6771
|
sendDocument: m.DO_SEND_DOCUMENT2
|
|
6864
6772
|
}),
|
|
6865
6773
|
async handleDocumentLinks() {
|
|
6866
|
-
const { id: i } = this.document, e =
|
|
6774
|
+
const { id: i } = this.document, e = V(this.document), t = !e.sms && !e.email;
|
|
6867
6775
|
t && (await this.updateDocument({
|
|
6868
6776
|
id: i,
|
|
6869
6777
|
body: { status: "sent" },
|
|
6870
6778
|
showMessage: !1
|
|
6871
|
-
}),
|
|
6779
|
+
}), h1({ id: i })), t || setTimeout(() => this.close(), 2e3);
|
|
6872
6780
|
},
|
|
6873
6781
|
async onSend() {
|
|
6874
6782
|
typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
|
|
@@ -6887,7 +6795,7 @@ const Mn = {
|
|
|
6887
6795
|
body: { isAccepted: !0 },
|
|
6888
6796
|
checksum: a
|
|
6889
6797
|
}), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
|
|
6890
|
-
|
|
6798
|
+
f1,
|
|
6891
6799
|
{
|
|
6892
6800
|
_document: this.document,
|
|
6893
6801
|
fullScreen: this.modalHeight === "100%",
|
|
@@ -6931,22 +6839,22 @@ const Mn = {
|
|
|
6931
6839
|
}
|
|
6932
6840
|
}
|
|
6933
6841
|
};
|
|
6934
|
-
var
|
|
6842
|
+
var Sn = function() {
|
|
6935
6843
|
var e = this, t = e._self._c;
|
|
6936
6844
|
return t("div", { staticClass: "font-inter root" }, [t("div", { staticClass: "container" }, [t("div", { staticClass: "icon-wrapper" }, [t("BaseIcon", { attrs: { size: 20, type: "email" } })], 1), t("div", { staticClass: "title", domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticClass: "divider" }), t("CButton", { staticClass: "close-button", attrs: { type: "secondary" }, on: { click: e.close } }, [e._v(" " + e._s(e.$t("_common:close")) + " ")])], 1)]);
|
|
6937
|
-
},
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6845
|
+
}, Tn = [], Dn = /* @__PURE__ */ c(
|
|
6846
|
+
$n,
|
|
6847
|
+
Sn,
|
|
6848
|
+
Tn,
|
|
6941
6849
|
!1,
|
|
6942
6850
|
null,
|
|
6943
6851
|
"673cd86f",
|
|
6944
6852
|
null,
|
|
6945
6853
|
null
|
|
6946
6854
|
);
|
|
6947
|
-
const
|
|
6948
|
-
|
|
6949
|
-
const
|
|
6855
|
+
const Vn = Dn.exports;
|
|
6856
|
+
B.use(o1);
|
|
6857
|
+
const Mn = {
|
|
6950
6858
|
name: "DocForm",
|
|
6951
6859
|
mixins: [Ge(["closeFunc", "beforeSave", "beforeSend"])],
|
|
6952
6860
|
i18nOptions: {
|
|
@@ -6961,9 +6869,9 @@ const Pn = {
|
|
|
6961
6869
|
}
|
|
6962
6870
|
},
|
|
6963
6871
|
components: {
|
|
6964
|
-
TemplateSelector:
|
|
6965
|
-
DocumentForm:
|
|
6966
|
-
PostSend:
|
|
6872
|
+
TemplateSelector: b2,
|
|
6873
|
+
DocumentForm: Ln,
|
|
6874
|
+
PostSend: Vn
|
|
6967
6875
|
},
|
|
6968
6876
|
props: {
|
|
6969
6877
|
isNew: {
|
|
@@ -7034,7 +6942,7 @@ const Pn = {
|
|
|
7034
6942
|
},
|
|
7035
6943
|
async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
|
|
7036
6944
|
var n;
|
|
7037
|
-
const a =
|
|
6945
|
+
const a = Zt({ ...this.rawDoc }, [
|
|
7038
6946
|
"__tempId",
|
|
7039
6947
|
"externalReferences",
|
|
7040
6948
|
"clients",
|
|
@@ -7061,7 +6969,8 @@ const Pn = {
|
|
|
7061
6969
|
async onSaveDocument({ doSend: i = !1 } = {}) {
|
|
7062
6970
|
typeof this.beforeSave == "function" && await this.beforeSave(), i && typeof this.beforeSend == "function" && await this.beforeSend();
|
|
7063
6971
|
const e = await this.saveDocument({ doSend: i }), t = this.docById(e);
|
|
7064
|
-
|
|
6972
|
+
let a;
|
|
6973
|
+
i && (a = !!(t != null && t.senderClient) || this.isManualDelivery(t)), a ? (this.document = t, this.view = "postSend") : this.close();
|
|
7065
6974
|
},
|
|
7066
6975
|
close() {
|
|
7067
6976
|
if (this.closeFunc)
|
|
@@ -7073,23 +6982,27 @@ const Pn = {
|
|
|
7073
6982
|
},
|
|
7074
6983
|
goBack() {
|
|
7075
6984
|
this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
|
|
6985
|
+
},
|
|
6986
|
+
isManualDelivery(i) {
|
|
6987
|
+
const e = V(i);
|
|
6988
|
+
return !e.sms && !e.email;
|
|
7076
6989
|
}
|
|
7077
6990
|
}
|
|
7078
6991
|
};
|
|
7079
|
-
var
|
|
6992
|
+
var Bn = function() {
|
|
7080
6993
|
var e = this, t = e._self._c;
|
|
7081
|
-
return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col w-full h-full" }, [t("div", { staticClass: "relative flex items-center justify-center h-16 border-b border-gray-200" }, [t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.close } }), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentForm", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.close, "go-back": e.goBack, "can-show-banner": !1 } }) : t("PostSend", { attrs: { document: e.document, "on-send-func": e.close, "on-close-func": e.close } })], 1);
|
|
7082
|
-
},
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
6994
|
+
return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col w-full h-full" }, [t("div", { staticClass: "relative flex items-center justify-center h-16 border-b border-gray-200" }, [t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.close } }), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentForm", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.close, "go-back": e.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
|
+
}, In = [], Fn = /* @__PURE__ */ c(
|
|
6996
|
+
Mn,
|
|
6997
|
+
Bn,
|
|
6998
|
+
In,
|
|
7086
6999
|
!1,
|
|
7087
7000
|
null,
|
|
7088
7001
|
null,
|
|
7089
7002
|
null,
|
|
7090
7003
|
null
|
|
7091
7004
|
);
|
|
7092
|
-
const
|
|
7005
|
+
const fs = Fn.exports;
|
|
7093
7006
|
export {
|
|
7094
|
-
|
|
7007
|
+
fs as default
|
|
7095
7008
|
};
|