@cling-se/widget 0.9.11 → 0.9.13
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-bccc787f.js → AddClientCallout-228b3577.js} +5 -5
- package/dist/{AnswerModal-4de1dbc1.js → AnswerModal-8d56e27b.js} +154 -143
- package/dist/{AttachmentItem-800d8c9f.js → AttachmentItem-c351e46f.js} +3 -3
- package/dist/{BaseDatePicker-1abafbac.js → BaseDatePicker-455a8e63.js} +43 -43
- package/dist/{BaseInput-51ade595.js → BaseInput-6b0cdce2.js} +1 -1
- package/dist/{BaseUpload-b9b2fa68.js → BaseUpload-53bb3574.js} +2 -2
- package/dist/{BlockMedia-efc20618.js → BlockMedia-7f55be7a.js} +1 -1
- package/dist/{CCallout-a357fde2.js → CCallout-357061be.js} +3 -3
- package/dist/{CDropdownItem-bb7f1de7.js → CDropdownItem-18010a08.js} +5 -5
- package/dist/{CField-d69fcf46.js → CField-05874972.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-5ac8d200.js → CSlider.vue_vue_type_style_index_0_lang-cf8cf3bf.js} +1 -1
- package/dist/{ClientAutocomplete-d126a3bd.js → ClientAutocomplete-80568a20.js} +2 -2
- package/dist/{ClientModal-e2c196c4.js → ClientModal-7504abd0.js} +4 -4
- package/dist/{ColorPicker-81f9f778.js → ColorPicker-6ce6c99f.js} +29 -29
- package/dist/{CompanyModal-092999bf.js → CompanyModal-14c95452.js} +3 -3
- package/dist/{ContentWrapper-1f930dce.js → ContentWrapper-2af616a6.js} +11 -11
- package/dist/{CoverBlockSettings-5aa513a4.js → CoverBlockSettings-16e69c0f.js} +9 -8
- package/dist/DocAnswer-4c60bdb2.js +33 -0
- package/dist/{DocForm-2e9af604.js → DocForm-88aad3f9.js} +877 -914
- package/dist/{DocFormSend-fadf14c9.js → DocFormSend-7822495a.js} +28 -24
- package/dist/{DocModalBase-4172fbbb.js → DocModalBase-cc16308d.js} +1 -1
- package/dist/{DocPrint-edc291ba.js → DocPrint-ab80350b.js} +1 -1
- package/dist/{DocReceipt-bcb8539c.js → DocReceipt-a418995c.js} +1 -1
- package/dist/{DocSendReminder-c75a1906.js → DocSendReminder-604537a5.js} +1 -1
- package/dist/{DocTextEditor-c9b90281.js → DocTextEditor-4c3a9dda.js} +7 -7
- package/dist/{DocTimeline-2afee21c.js → DocTimeline-f528fe03.js} +5 -5
- package/dist/{DocumentClient-425f6e0b.js → DocumentClient-63eee0be.js} +5 -5
- package/dist/{DocumentLayout-0d24ac85.js → DocumentLayout-7f21170a.js} +95 -95
- package/dist/{DocumentLogotype-278b2823.js → DocumentLogotype-342699d5.js} +16 -16
- package/dist/{EmbedInput-28796e66.js → EmbedInput-838658e0.js} +2 -2
- package/dist/{EmbedSettings-1e097db9.js → EmbedSettings-4861e515.js} +3 -3
- package/dist/{ErrorCallout-ddbc30af.js → ErrorCallout-3c335312.js} +1 -1
- package/dist/{FilePreviewModal-360216a2.js → FilePreviewModal-36890f6f.js} +4 -4
- package/dist/{HeaderSettings-abc9e60f.js → HeaderSettings-c60b567b.js} +18 -17
- package/dist/{ImageSelectModal-2c078df5.js → ImageSelectModal-364cb7f3.js} +15 -17
- package/dist/{ImageUploadWrapper-99a3b0dd.js → ImageUploadWrapper-3f97caf0.js} +2 -2
- package/dist/{Index-8b57e293.js → Index-043d9b1b.js} +2 -2
- package/dist/{Index-a0de23fe.js → Index-0a743dbe.js} +5 -5
- package/dist/{Index-61b794ca.js → Index-143c8249.js} +4 -4
- package/dist/{Index-610a54bf.js → Index-236b16cb.js} +25 -25
- package/dist/{Index-abb29c87.js → Index-2d530ba9.js} +26 -26
- package/dist/{Index-7317f443.js → Index-31c43501.js} +4 -4
- package/dist/{Index-a8faf552.js → Index-39588910.js} +4 -4
- package/dist/{Index-d56d4b7b.js → Index-4d066329.js} +1 -1
- package/dist/{Index-6435f551.js → Index-4d75a98f.js} +11 -11
- package/dist/{Index-61786d22.js → Index-54dae7d5.js} +6 -6
- package/dist/{Index-05d4a173.js → Index-5e5e9eea.js} +2 -2
- package/dist/{Index-5688e5e1.js → Index-61044ea1.js} +14 -14
- package/dist/{Index-cb1efaaa.js → Index-622f4488.js} +6 -6
- package/dist/{Index-23c1de88.js → Index-68d33a7a.js} +2 -2
- package/dist/{Index-aecbccac.js → Index-7ae67a69.js} +2 -2
- package/dist/{Index-4cae2241.js → Index-81aebe47.js} +11 -11
- package/dist/{Index-81eeecba.js → Index-87e1bf30.js} +2 -2
- package/dist/{Index-a8b60741.js → Index-933d777b.js} +4 -4
- package/dist/{Index-ad024dc9.js → Index-9f14cadf.js} +5 -5
- package/dist/{Index-168790bc.js → Index-a954fa0e.js} +4 -4
- package/dist/{Index-0a9e95d6.js → Index-ab549b7b.js} +2 -2
- package/dist/{Index-d841c396.js → Index-ab8a049c.js} +5 -5
- package/dist/{Index-8b02f74f.js → Index-ad6b4226.js} +1 -1
- package/dist/{Index-f3af647f.js → Index-c3e9f61e.js} +4 -4
- package/dist/{Index-901f2f68.js → Index-c4a96084.js} +3 -3
- package/dist/{Index-83597574.js → Index-c4da8059.js} +10 -10
- package/dist/{Index-cb10ca9b.js → Index-d0572db7.js} +8 -8
- package/dist/{Index-d2d40188.js → Index-d354a773.js} +4 -4
- package/dist/{Index-44764dbb.js → Index-dad75b77.js} +7 -7
- package/dist/{Index-193a4968.js → Index-db68776e.js} +5 -5
- package/dist/{Index-f9a97c67.js → Index-df63e9b1.js} +2 -2
- package/dist/{Index-c5b9ad7f.js → Index-e1fa12f4.js} +4 -4
- package/dist/{Index-7a56c885.js → Index-e8bd9682.js} +4 -4
- package/dist/{Index-942a36d2.js → Index-eb677c16.js} +12 -12
- package/dist/{InputToggleRow-3bba2a55.js → InputToggleRow-9f3a21c8.js} +1 -1
- package/dist/IsPremiumPreStep-fc67e5a6.js +3698 -0
- package/dist/{MediaWrapper-574eca05.js → MediaWrapper-97e972de.js} +3 -3
- package/dist/{NotBindingText-f2acdb51.js → NotBindingText-a1bfc652.js} +2 -2
- package/dist/{PackageGroup-625d7093.js → PackageGroup-fd73d61e.js} +12 -12
- package/dist/{PdfTerms-05e6491e.js → PdfTerms-183987fe.js} +4 -4
- package/dist/{PdfViewer-4d32b0f1.js → PdfViewer-92bae106.js} +2 -2
- package/dist/{PlainHtml-c2e1feca.js → PlainHtml-659dc40e.js} +1 -1
- package/dist/{PriceHeader-ce8bb22c.js → PriceHeader-07cd131c.js} +11 -11
- package/dist/{SearchApi-b7e03288.js → SearchApi-64811a82.js} +2 -2
- package/dist/Setup-2ceea9c6.js +53 -0
- package/dist/{TermsSettings-de33fad6.js → TermsSettings-fcd58004.js} +6 -6
- package/dist/{ThemeColorRow-52efe243.js → ThemeColorRow-df5956c8.js} +11 -20
- package/dist/{ToggleBinding-ec8d351f.js → ToggleBinding-f7bc2d76.js} +3 -3
- package/dist/{UploadModal-463188b1.js → UploadModal-a1ac0b5c.js} +3 -3
- package/dist/{VideoPlayerInput-9314dfa5.js → VideoPlayerInput-1f3f68ff.js} +3 -3
- package/dist/{VideoPlayerSettings-e7978498.js → VideoPlayerSettings-11942297.js} +4 -4
- package/dist/{VideoSelectModal-72e1e4e2.js → VideoSelectModal-745c2810.js} +12 -12
- package/dist/{answerDocumentMixin-d65059b8.js → answerDocumentMixin-f8efbecd.js} +3 -3
- package/dist/{cssMode-88d0146a.js → cssMode-76c1eb7e.js} +15 -19
- package/dist/{focusDrawerMixin-46eade80.js → focusDrawerMixin-ef272683.js} +1 -1
- package/dist/{formComponentsInstall-0cfab48e.js → formComponentsInstall-1032f4c0.js} +263 -258
- package/dist/{formValidationMixin-94fb3562.js → formValidationMixin-cae02f79.js} +1 -1
- package/dist/{freemarker2-fb187d64.js → freemarker2-a5050433.js} +19 -23
- package/dist/{handlebars-4a1a8024.js → handlebars-97600bea.js} +11 -15
- package/dist/{html-00e90fc7.js → html-848aba57.js} +14 -18
- package/dist/{htmlMode-cfbebdc7.js → htmlMode-f297f1ba.js} +19 -23
- package/dist/image-eeafca74.js +18 -0
- package/dist/index-5bf60a14.js +82 -0
- package/dist/{index-7a30802a.js → index-66441a0e.js} +7 -7
- package/dist/{index-93fd29b3.js → index-9c826693.js} +4 -4
- package/dist/index-b156c3e5.js +14 -0
- package/dist/{index-de7702a8.js → index-d9dc84c3.js} +15 -15
- package/dist/index.es.js +7 -4
- package/dist/index.umd.js +605 -602
- package/dist/{javascript-3213b923.js → javascript-05903a61.js} +11 -15
- package/dist/{jsonMode-afc781d8.js → jsonMode-808b2c11.js} +19 -23
- package/dist/{liquid-dc5a4df5.js → liquid-3a4ed820.js} +14 -18
- package/dist/{main-abeba7c1.js → main-37f5e386.js} +28102 -27922
- package/dist/{mapFormMixin-e82f943f.js → mapFormMixin-57fc1af3.js} +1 -1
- package/dist/{publicSenderState-2f11c080.js → publicSenderState-23dfd84e.js} +1 -1
- package/dist/{python-4bce1745.js → python-59364ca7.js} +11 -15
- package/dist/{razor-f57062fd.js → razor-c485357e.js} +18 -22
- package/dist/{simplebar.min-07c0e6b7.js → simplebar.min-0afea859.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/template-09a48d50.js +526 -0
- package/dist/throttle-7cc7cddf.js +18 -0
- package/dist/{tinycolor-0084a04e.js → tinycolor-9b14b99e.js} +6 -6
- package/dist/{tippy.esm-2bcbed04.js → tippy.esm-e04582c9.js} +5 -5
- package/dist/{tsMode-c0486e4e.js → tsMode-1c3b939e.js} +15 -19
- package/dist/{typescript-50a48698.js → typescript-80bee482.js} +11 -15
- package/dist/{utils-d907da71.js → utils-48a92f83.js} +5 -5
- package/dist/{vuedraggable.umd-c326d90c.js → vuedraggable.umd-937de8ac.js} +48 -48
- package/dist/{xml-0ef7a70a.js → xml-277e74c7.js} +14 -18
- package/package.json +10 -8
- package/dist/IsPremiumPreStep-1657f1ce.js +0 -2443
- package/dist/Setup-e92daff6.js +0 -50
- package/dist/assets/article-options-10522.png +0 -0
- package/dist/assets/bg-base-11995.png +0 -0
- package/dist/assets/bg-pro-89155.png +0 -0
- package/dist/assets/bg-start-17372.png +0 -0
- package/dist/assets/blank-95062.png +0 -0
- package/dist/assets/block-options-11378.png +0 -0
- package/dist/assets/columnGallery.image-14820.png +0 -0
- package/dist/assets/doc-send-25589.png +0 -0
- package/dist/assets/drag-block-21107.png +0 -0
- package/dist/assets/headerCircularGradient.image-79345.png +0 -0
- package/dist/assets/roiCalculator.image-13673.png +0 -0
- package/dist/assets/text-bubble-21606.png +0 -0
- package/dist/index-e9d870d0.js +0 -17
- package/dist/regions-29ee6964.js +0 -1250
- package/dist/template-3600893b.js +0 -528
- package/dist/throttle-1bf5bb97.js +0 -18
|
@@ -1,119 +1,107 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as g, a as
|
|
3
|
-
import "./index-
|
|
4
|
-
import { v as
|
|
5
|
-
import { d as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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
|
|
20
|
-
import
|
|
21
|
-
import p1 from "/Users/rang.ali/Projects/cling-vue/widget/dist/assets/block-options-11378.png";
|
|
22
|
-
import u1 from "/Users/rang.ali/Projects/cling-vue/widget/dist/assets/article-options-10522.png";
|
|
23
|
-
import m1 from "/Users/rang.ali/Projects/cling-vue/widget/dist/assets/doc-send-25589.png";
|
|
24
|
-
import { s as h1 } from "./dom-068d1a7b.js";
|
|
25
|
-
import f1 from "./AnswerModal-4de1dbc1.js";
|
|
26
|
-
import "./color-71c20583.js";
|
|
1
|
+
import { aY as ue, aZ as me, a_ as G, a$ as he, b0 as U, b1 as W, b2 as fe, b3 as ge, b4 as Ce, b5 as ve, j as ye, g as m, n as c, s as q, b as u, av as xe, c as f, C as N, b6 as we, b7 as be, h as S, b8 as _e, b9 as ke, A as Le, ba as $e, bb as Se, aX as Te, bc as De, M as d, a4 as h, aS as x, bd as Ve, be as Be, bf as Me, bg as Ie, D as Fe, bh as He, d as Ae, i as _, a3 as j, S as Pe, ap as Ee, ae as ze, bi as Ze, V as k, aU as K, aV as Y, I as F, bj as D, aW as Oe, bk as Re, bl as H, r as Ge, m as Ue, a as We, bm as qe } from "./main-37f5e386.js";
|
|
2
|
+
import { m as g, a as y } from "./vuex.esm-4a0fff7c.js";
|
|
3
|
+
import "./index-d9dc84c3.js";
|
|
4
|
+
import { v as B } from "./index-805c56e4.js";
|
|
5
|
+
import { d as M, w as L } from "./CDropdownItem-18010a08.js";
|
|
6
|
+
import { b as Ne, I, c as je, a as Q } from "./IsPremiumPreStep-fc67e5a6.js";
|
|
7
|
+
import { D as Ke, l as Ye, g as Qe, W as Je, b as Xe, a as et } from "./DocumentLayout-7f21170a.js";
|
|
8
|
+
import { s as b } from "./simplebar.min-0afea859.js";
|
|
9
|
+
import { B as tt } from "./BlockMedia-7f55be7a.js";
|
|
10
|
+
import { c as it, g as at } from "./template-09a48d50.js";
|
|
11
|
+
import { a as nt } from "./tinycolor-9b14b99e.js";
|
|
12
|
+
import { m as $ } from "./mapFormMixin-57fc1af3.js";
|
|
13
|
+
import { S as st, C as J, i as ot } from "./formComponentsInstall-1032f4c0.js";
|
|
14
|
+
import { s as v, f as lt } from "./focusDrawerMixin-ef272683.js";
|
|
15
|
+
import { f as rt } from "./formValidationMixin-cae02f79.js";
|
|
16
|
+
import { F as X, d as ct } from "./tippy.esm-e04582c9.js";
|
|
17
|
+
import { S as dt } from "./CSlider.vue_vue_type_style_index_0_lang-cf8cf3bf.js";
|
|
18
|
+
import { o as pt, d as ut } from "./vuedraggable.umd-937de8ac.js";
|
|
19
|
+
import { s as mt } from "./dom-068d1a7b.js";
|
|
20
|
+
import ht from "./AnswerModal-8d56e27b.js";
|
|
27
21
|
import "./anime.es-e284c852.js";
|
|
28
|
-
import "./
|
|
29
|
-
import "
|
|
30
|
-
import "
|
|
31
|
-
import "
|
|
32
|
-
import "
|
|
33
|
-
import "
|
|
34
|
-
import "
|
|
35
|
-
import "
|
|
36
|
-
import "./
|
|
37
|
-
import "./
|
|
38
|
-
import "./AddClientCallout-bccc787f.js";
|
|
39
|
-
import "./ClientAutocomplete-d126a3bd.js";
|
|
40
|
-
import "./SearchApi-b7e03288.js";
|
|
41
|
-
import "./ClientModal-e2c196c4.js";
|
|
42
|
-
import "./CCallout-a357fde2.js";
|
|
43
|
-
import "./CField-d69fcf46.js";
|
|
22
|
+
import "./image-eeafca74.js";
|
|
23
|
+
import "./color-71c20583.js";
|
|
24
|
+
import "./BaseDatePicker-455a8e63.js";
|
|
25
|
+
import "./ErrorCallout-3c335312.js";
|
|
26
|
+
import "./AddClientCallout-228b3577.js";
|
|
27
|
+
import "./ClientAutocomplete-80568a20.js";
|
|
28
|
+
import "./SearchApi-64811a82.js";
|
|
29
|
+
import "./ClientModal-7504abd0.js";
|
|
30
|
+
import "./CCallout-357061be.js";
|
|
31
|
+
import "./CField-05874972.js";
|
|
44
32
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
45
|
-
import "./ColorPicker-
|
|
46
|
-
var
|
|
47
|
-
function
|
|
33
|
+
import "./ColorPicker-6ce6c99f.js";
|
|
34
|
+
var ft = ue, gt = me, Ct = G;
|
|
35
|
+
function vt(i, e, t) {
|
|
48
36
|
for (var a = -1, n = e.length, s = {}; ++a < n; ) {
|
|
49
|
-
var o = e[a], l =
|
|
50
|
-
t(l, o) &&
|
|
37
|
+
var o = e[a], l = ft(i, o);
|
|
38
|
+
t(l, o) && gt(s, Ct(o, i), l);
|
|
51
39
|
}
|
|
52
40
|
return s;
|
|
53
41
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
42
|
+
var yt = vt;
|
|
43
|
+
function xt(i, e) {
|
|
56
44
|
return i != null && e in Object(i);
|
|
57
45
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
60
|
-
return
|
|
46
|
+
var wt = xt, bt = he, _t = U, kt = "[object Arguments]";
|
|
47
|
+
function Lt(i) {
|
|
48
|
+
return _t(i) && bt(i) == kt;
|
|
61
49
|
}
|
|
62
|
-
var
|
|
50
|
+
var $t = Lt, A = $t, St = U, ee = Object.prototype, Tt = ee.hasOwnProperty, Dt = ee.propertyIsEnumerable, Vt = A(function() {
|
|
63
51
|
return arguments;
|
|
64
|
-
}()) ?
|
|
65
|
-
return
|
|
66
|
-
},
|
|
67
|
-
function
|
|
68
|
-
return typeof i == "number" && i > -1 && i % 1 == 0 && i <=
|
|
52
|
+
}()) ? A : function(i) {
|
|
53
|
+
return St(i) && Tt.call(i, "callee") && !Dt.call(i, "callee");
|
|
54
|
+
}, te = Vt, Bt = 9007199254740991;
|
|
55
|
+
function Mt(i) {
|
|
56
|
+
return typeof i == "number" && i > -1 && i % 1 == 0 && i <= Bt;
|
|
69
57
|
}
|
|
70
|
-
var
|
|
71
|
-
function
|
|
72
|
-
e =
|
|
58
|
+
var It = Mt, Ft = G, Ht = te, At = W, Pt = fe, Et = It, zt = ge;
|
|
59
|
+
function Zt(i, e, t) {
|
|
60
|
+
e = Ft(e, i);
|
|
73
61
|
for (var a = -1, n = e.length, s = !1; ++a < n; ) {
|
|
74
|
-
var o =
|
|
62
|
+
var o = zt(e[a]);
|
|
75
63
|
if (!(s = i != null && t(i, o)))
|
|
76
64
|
break;
|
|
77
65
|
i = i[o];
|
|
78
66
|
}
|
|
79
|
-
return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n &&
|
|
67
|
+
return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && Et(n) && Pt(o, n) && (At(i) || Ht(i)));
|
|
80
68
|
}
|
|
81
|
-
var
|
|
82
|
-
function
|
|
83
|
-
return i != null &&
|
|
69
|
+
var Ot = Zt, Rt = wt, Gt = Ot;
|
|
70
|
+
function Ut(i, e) {
|
|
71
|
+
return i != null && Gt(i, e, Rt);
|
|
84
72
|
}
|
|
85
|
-
var
|
|
86
|
-
function
|
|
87
|
-
return
|
|
88
|
-
return
|
|
73
|
+
var Wt = Ut, qt = yt, Nt = Wt;
|
|
74
|
+
function jt(i, e) {
|
|
75
|
+
return qt(i, e, function(t, a) {
|
|
76
|
+
return Nt(i, a);
|
|
89
77
|
});
|
|
90
78
|
}
|
|
91
|
-
var
|
|
92
|
-
function
|
|
79
|
+
var Kt = jt;
|
|
80
|
+
function Yt(i, e) {
|
|
93
81
|
for (var t = -1, a = e.length, n = i.length; ++t < a; )
|
|
94
82
|
i[n + t] = e[t];
|
|
95
83
|
return i;
|
|
96
84
|
}
|
|
97
|
-
var
|
|
98
|
-
function
|
|
99
|
-
return
|
|
85
|
+
var Qt = Yt, P = Ce, Jt = te, Xt = W, E = P ? P.isConcatSpreadable : void 0;
|
|
86
|
+
function e1(i) {
|
|
87
|
+
return Xt(i) || Jt(i) || !!(E && i && i[E]);
|
|
100
88
|
}
|
|
101
|
-
var
|
|
102
|
-
function
|
|
89
|
+
var t1 = e1, i1 = Qt, a1 = t1;
|
|
90
|
+
function ie(i, e, t, a, n) {
|
|
103
91
|
var s = -1, o = i.length;
|
|
104
|
-
for (t || (t =
|
|
92
|
+
for (t || (t = a1), n || (n = []); ++s < o; ) {
|
|
105
93
|
var l = i[s];
|
|
106
|
-
e > 0 && t(l) ? e > 1 ?
|
|
94
|
+
e > 0 && t(l) ? e > 1 ? ie(l, e - 1, t, a, n) : i1(n, l) : a || (n[n.length] = l);
|
|
107
95
|
}
|
|
108
96
|
return n;
|
|
109
97
|
}
|
|
110
|
-
var
|
|
111
|
-
function
|
|
98
|
+
var n1 = ie, s1 = n1;
|
|
99
|
+
function o1(i) {
|
|
112
100
|
var e = i == null ? 0 : i.length;
|
|
113
|
-
return e ?
|
|
101
|
+
return e ? s1(i, 1) : [];
|
|
114
102
|
}
|
|
115
|
-
var
|
|
116
|
-
function
|
|
103
|
+
var l1 = o1;
|
|
104
|
+
function r1(i, e, t) {
|
|
117
105
|
switch (t.length) {
|
|
118
106
|
case 0:
|
|
119
107
|
return i.call(e);
|
|
@@ -126,56 +114,56 @@ function ct(i, e, t) {
|
|
|
126
114
|
}
|
|
127
115
|
return i.apply(e, t);
|
|
128
116
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
131
|
-
return e =
|
|
132
|
-
for (var a = arguments, n = -1, s =
|
|
117
|
+
var c1 = r1, d1 = c1, z = Math.max;
|
|
118
|
+
function p1(i, e, t) {
|
|
119
|
+
return e = z(e === void 0 ? i.length - 1 : e, 0), function() {
|
|
120
|
+
for (var a = arguments, n = -1, s = z(a.length - e, 0), o = Array(s); ++n < s; )
|
|
133
121
|
o[n] = a[e + n];
|
|
134
122
|
n = -1;
|
|
135
123
|
for (var l = Array(e + 1); ++n < e; )
|
|
136
124
|
l[n] = a[n];
|
|
137
|
-
return l[e] = t(o),
|
|
125
|
+
return l[e] = t(o), d1(i, this, l);
|
|
138
126
|
};
|
|
139
127
|
}
|
|
140
|
-
var
|
|
141
|
-
function
|
|
128
|
+
var u1 = p1;
|
|
129
|
+
function m1(i) {
|
|
142
130
|
return function() {
|
|
143
131
|
return i;
|
|
144
132
|
};
|
|
145
133
|
}
|
|
146
|
-
var
|
|
147
|
-
function
|
|
134
|
+
var h1 = m1;
|
|
135
|
+
function f1(i) {
|
|
148
136
|
return i;
|
|
149
137
|
}
|
|
150
|
-
var
|
|
151
|
-
return
|
|
138
|
+
var g1 = f1, C1 = h1, Z = ve, v1 = g1, y1 = Z ? function(i, e) {
|
|
139
|
+
return Z(i, "toString", {
|
|
152
140
|
configurable: !0,
|
|
153
141
|
enumerable: !1,
|
|
154
|
-
value:
|
|
142
|
+
value: C1(e),
|
|
155
143
|
writable: !0
|
|
156
144
|
});
|
|
157
|
-
} :
|
|
158
|
-
function
|
|
145
|
+
} : v1, x1 = y1, w1 = 800, b1 = 16, _1 = Date.now;
|
|
146
|
+
function k1(i) {
|
|
159
147
|
var e = 0, t = 0;
|
|
160
148
|
return function() {
|
|
161
|
-
var a =
|
|
149
|
+
var a = _1(), n = b1 - (a - t);
|
|
162
150
|
if (t = a, n > 0) {
|
|
163
|
-
if (++e >=
|
|
151
|
+
if (++e >= w1)
|
|
164
152
|
return arguments[0];
|
|
165
153
|
} else
|
|
166
154
|
e = 0;
|
|
167
155
|
return i.apply(void 0, arguments);
|
|
168
156
|
};
|
|
169
157
|
}
|
|
170
|
-
var
|
|
171
|
-
function
|
|
172
|
-
return
|
|
158
|
+
var L1 = k1, $1 = x1, S1 = L1, T1 = S1($1), D1 = T1, V1 = l1, B1 = u1, M1 = D1;
|
|
159
|
+
function I1(i) {
|
|
160
|
+
return M1(B1(i, void 0, V1), i + "");
|
|
173
161
|
}
|
|
174
|
-
var
|
|
175
|
-
return i == null ? {} :
|
|
176
|
-
}),
|
|
177
|
-
const
|
|
178
|
-
const
|
|
162
|
+
var F1 = I1, H1 = Kt, A1 = F1, P1 = A1(function(i, e) {
|
|
163
|
+
return i == null ? {} : H1(i, e);
|
|
164
|
+
}), E1 = P1;
|
|
165
|
+
const z1 = /* @__PURE__ */ ye(E1);
|
|
166
|
+
const Z1 = {
|
|
179
167
|
i18nOptions: {
|
|
180
168
|
namespaces: "DocumentTemplateFormModal",
|
|
181
169
|
messages: {
|
|
@@ -228,7 +216,7 @@ const Ot = {
|
|
|
228
216
|
},
|
|
229
217
|
validations: {
|
|
230
218
|
name: {
|
|
231
|
-
required:
|
|
219
|
+
required: B.requiredIf((i) => !i.updateExistingDocTemplate)
|
|
232
220
|
}
|
|
233
221
|
},
|
|
234
222
|
computed: {
|
|
@@ -256,10 +244,10 @@ const Ot = {
|
|
|
256
244
|
this.$refs.input && this.$refs.input.focus();
|
|
257
245
|
},
|
|
258
246
|
methods: {
|
|
259
|
-
...
|
|
260
|
-
loadTemplate:
|
|
261
|
-
saveTemplate:
|
|
262
|
-
updateSettings:
|
|
247
|
+
...y({
|
|
248
|
+
loadTemplate: m.DO_LOAD_TEMPLATE,
|
|
249
|
+
saveTemplate: m.SAVE_TEMPLATE_FORM,
|
|
250
|
+
updateSettings: m.UPDATE_SETTINGS
|
|
263
251
|
}),
|
|
264
252
|
async onSave() {
|
|
265
253
|
if (!this.document && !this.template && (this.$log.error('Missing prop "document" or "template"'), this.$emit("close")), this.$v.$invalid)
|
|
@@ -309,7 +297,7 @@ const Ot = {
|
|
|
309
297
|
}
|
|
310
298
|
}
|
|
311
299
|
};
|
|
312
|
-
var
|
|
300
|
+
var O1 = function() {
|
|
313
301
|
var e = this, t = e._self._c;
|
|
314
302
|
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) {
|
|
315
303
|
e.name = a;
|
|
@@ -318,22 +306,60 @@ var Rt = function() {
|
|
|
318
306
|
}, 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) {
|
|
319
307
|
e.keepClients = a;
|
|
320
308
|
}, 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);
|
|
321
|
-
},
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
309
|
+
}, R1 = [], G1 = /* @__PURE__ */ c(
|
|
310
|
+
Z1,
|
|
311
|
+
O1,
|
|
312
|
+
R1,
|
|
325
313
|
!1,
|
|
326
314
|
null,
|
|
327
315
|
"9f39f8ce",
|
|
328
316
|
null,
|
|
329
317
|
null
|
|
330
318
|
);
|
|
331
|
-
const
|
|
332
|
-
|
|
319
|
+
const ae = G1.exports;
|
|
320
|
+
function U1(i, { availableProducts: e }) {
|
|
321
|
+
if (!i)
|
|
322
|
+
throw new Error("Missing parameter templateId");
|
|
323
|
+
const t = e, a = Object.keys(t).find((n) => {
|
|
324
|
+
var o;
|
|
325
|
+
const s = u(
|
|
326
|
+
t[n],
|
|
327
|
+
"metadata.companyPurchase"
|
|
328
|
+
);
|
|
329
|
+
return (s == null ? void 0 : s.type) === "template" && ((o = s == null ? void 0 : s.data) == null ? void 0 : o.id) === i;
|
|
330
|
+
});
|
|
331
|
+
return a ? t[a] : null;
|
|
332
|
+
}
|
|
333
|
+
async function W1(i) {
|
|
334
|
+
if (!i)
|
|
335
|
+
throw new Error("Missing argument stripeProduct");
|
|
336
|
+
const e = i == null ? void 0 : i.prices[0], { data: t } = await xe.createCheckoutSession({
|
|
337
|
+
items: [
|
|
338
|
+
{
|
|
339
|
+
stripePriceStripeId: e.stripeId,
|
|
340
|
+
quantity: 1
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
successUrl: `${f.baseUrl}/purchase/success`
|
|
344
|
+
// cancelUrl: window.location.href
|
|
345
|
+
}), { redirectUrl: a } = t;
|
|
346
|
+
window.open(a, "_blank");
|
|
347
|
+
}
|
|
348
|
+
function ne(i, { availableProducts: e }) {
|
|
349
|
+
var n, s, o;
|
|
350
|
+
let t = null;
|
|
351
|
+
const a = U1(i.templateId, { availableProducts: e });
|
|
352
|
+
return a && (t = {
|
|
353
|
+
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
|
+
isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
|
|
355
|
+
onBuy: async () => W1(a)
|
|
356
|
+
}), t;
|
|
357
|
+
}
|
|
358
|
+
const q1 = {
|
|
333
359
|
name: "GalleryTemplateModal",
|
|
334
360
|
components: {
|
|
335
|
-
simplebar:
|
|
336
|
-
DocumentLayout:
|
|
361
|
+
simplebar: b,
|
|
362
|
+
DocumentLayout: Ke
|
|
337
363
|
},
|
|
338
364
|
props: {
|
|
339
365
|
// Instance of template
|
|
@@ -341,6 +367,10 @@ const Wt = {
|
|
|
341
367
|
type: Object,
|
|
342
368
|
required: !0
|
|
343
369
|
},
|
|
370
|
+
fetchGallery: {
|
|
371
|
+
type: Function,
|
|
372
|
+
required: !0
|
|
373
|
+
},
|
|
344
374
|
meta: {
|
|
345
375
|
type: Object,
|
|
346
376
|
default: () => ({})
|
|
@@ -359,12 +389,21 @@ const Wt = {
|
|
|
359
389
|
type: Function,
|
|
360
390
|
required: !1,
|
|
361
391
|
default: null
|
|
392
|
+
},
|
|
393
|
+
product: {
|
|
394
|
+
type: Object,
|
|
395
|
+
default: null
|
|
396
|
+
},
|
|
397
|
+
galleryItemId: {
|
|
398
|
+
type: String,
|
|
399
|
+
required: !0
|
|
362
400
|
}
|
|
363
401
|
},
|
|
364
402
|
data() {
|
|
365
403
|
return {
|
|
366
404
|
// previewDocument: null,
|
|
367
405
|
didSave: !1,
|
|
406
|
+
privateProduct: null,
|
|
368
407
|
dummyPreviewClient: {
|
|
369
408
|
name: "Pernilla P.",
|
|
370
409
|
email: "pernilla@mail.se",
|
|
@@ -372,15 +411,18 @@ const Wt = {
|
|
|
372
411
|
documentRole: "signee",
|
|
373
412
|
type: "individual"
|
|
374
413
|
},
|
|
375
|
-
templateStat: null
|
|
414
|
+
templateStat: null,
|
|
415
|
+
socketUnsubscribeFn: null
|
|
416
|
+
// Function to unsubscribe from socket
|
|
376
417
|
};
|
|
377
418
|
},
|
|
378
419
|
computed: {
|
|
379
420
|
...g({
|
|
380
|
-
isLoading: "templates/isPosting"
|
|
421
|
+
isLoading: "templates/isPosting",
|
|
422
|
+
stripeProducts: "stripe/products"
|
|
381
423
|
}),
|
|
382
424
|
previewDocument() {
|
|
383
|
-
const { data: i, defaultData: e } = this.template, t = new
|
|
425
|
+
const { data: i, defaultData: e } = this.template, t = new N({
|
|
384
426
|
data: {
|
|
385
427
|
...e,
|
|
386
428
|
template: i,
|
|
@@ -393,14 +435,30 @@ const Wt = {
|
|
|
393
435
|
}
|
|
394
436
|
},
|
|
395
437
|
created() {
|
|
396
|
-
this.loadTemplateStat()
|
|
438
|
+
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = we.on("event", async ({ type: i, action: e, data: t }) => {
|
|
439
|
+
var a;
|
|
440
|
+
if (i === "companyPurchase" && e === "applied" && (t == null ? void 0 : t.type) === "template") {
|
|
441
|
+
const n = (a = t == null ? void 0 : t.data) == null ? void 0 : a.id;
|
|
442
|
+
if (n !== this.template.id)
|
|
443
|
+
return;
|
|
444
|
+
const s = {
|
|
445
|
+
templateId: n,
|
|
446
|
+
isVisibleApp: !0,
|
|
447
|
+
includePurchaseInfo: !0
|
|
448
|
+
}, o = await this.fetchGallery(s);
|
|
449
|
+
this.privateProduct = ne(o[0], { availableProducts: this.stripeProducts });
|
|
450
|
+
}
|
|
451
|
+
}));
|
|
452
|
+
},
|
|
453
|
+
beforeDestroy() {
|
|
454
|
+
this.socketUnsubscribeFn && this.socketUnsubscribeFn();
|
|
397
455
|
},
|
|
398
456
|
methods: {
|
|
399
457
|
async loadTemplateStat() {
|
|
400
458
|
const i = this.template.id;
|
|
401
459
|
i || (this.templateStat = null);
|
|
402
460
|
try {
|
|
403
|
-
const { data: e } = await
|
|
461
|
+
const { data: e } = await be.get(i);
|
|
404
462
|
this.templateStat = e;
|
|
405
463
|
} catch {
|
|
406
464
|
this.templateStat = null;
|
|
@@ -409,30 +467,33 @@ const Wt = {
|
|
|
409
467
|
async useSelectedTemplate() {
|
|
410
468
|
this.$parent.$emit("use-template", this.template), this.$emit("close");
|
|
411
469
|
},
|
|
470
|
+
async buyTemplate() {
|
|
471
|
+
await this.privateProduct.onBuy();
|
|
472
|
+
},
|
|
412
473
|
async saveAsTemplate() {
|
|
413
474
|
this.template && typeof this.onSaveTemplate == "function" && (this.didSave = await this.onSaveTemplate(this.template));
|
|
414
475
|
}
|
|
415
476
|
}
|
|
416
477
|
};
|
|
417
|
-
var
|
|
418
|
-
var a;
|
|
478
|
+
var N1 = function() {
|
|
479
|
+
var a, n;
|
|
419
480
|
var e = this, t = e._self._c;
|
|
420
|
-
return t("div", { staticClass: "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" } }, [t("simplebar", [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : 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) + " ")]), 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: {
|
|
481
|
+
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: {
|
|
421
482
|
backgroundImage: `url(${e.meta.author.avatar})`
|
|
422
|
-
} }), 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)])])]), t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { type: "secondary", wide: "" }, on: { click: e.useSelectedTemplate } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")]), e.showSave ? t("CButton", { attrs: { loading: e.isLoading, type: e.didSave ? "success" : "none", "icon-left": e.didSave ? "check" : void 0, wide: "" }, on: { click: function(
|
|
483
|
+
} }), 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) {
|
|
423
484
|
e.didSave || e.saveAsTemplate();
|
|
424
|
-
} } }, [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()],
|
|
425
|
-
},
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
485
|
+
} } }, [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
|
+
}, j1 = [], K1 = /* @__PURE__ */ c(
|
|
487
|
+
q1,
|
|
488
|
+
N1,
|
|
489
|
+
j1,
|
|
429
490
|
!1,
|
|
430
491
|
null,
|
|
431
|
-
"
|
|
492
|
+
"07b93fb2",
|
|
432
493
|
null,
|
|
433
494
|
null
|
|
434
495
|
);
|
|
435
|
-
const
|
|
496
|
+
const Y1 = K1.exports, Q1 = {
|
|
436
497
|
name: "GalleryLogic",
|
|
437
498
|
i18nOptions: {
|
|
438
499
|
namespaces: "GalleryLogic",
|
|
@@ -489,6 +550,14 @@ const Kt = jt.exports, Yt = {
|
|
|
489
550
|
filterLanguage: {
|
|
490
551
|
type: String,
|
|
491
552
|
default: () => ["cling", "fortnoxSe"].includes(f.brand) ? "sv" : "en"
|
|
553
|
+
},
|
|
554
|
+
showTemplateAuthor: {
|
|
555
|
+
type: Boolean,
|
|
556
|
+
default: !0
|
|
557
|
+
},
|
|
558
|
+
canPurchase: {
|
|
559
|
+
type: Boolean,
|
|
560
|
+
default: !0
|
|
492
561
|
}
|
|
493
562
|
},
|
|
494
563
|
data() {
|
|
@@ -516,6 +585,9 @@ const Kt = jt.exports, Yt = {
|
|
|
516
585
|
};
|
|
517
586
|
},
|
|
518
587
|
computed: {
|
|
588
|
+
...g({
|
|
589
|
+
stripeProducts: "stripe/products"
|
|
590
|
+
}),
|
|
519
591
|
galleryItems() {
|
|
520
592
|
return this.isLoading ? Array(6).fill({ placeholder: !0 }) : this.templateGalleryItems.filter(({ categories: i }) => i.includes(this.activeCategory && this.activeCategory.key));
|
|
521
593
|
},
|
|
@@ -533,38 +605,49 @@ const Kt = jt.exports, Yt = {
|
|
|
533
605
|
!i || !i.length || (!this.activeCategory || !i.includes(this.activeCategory)) && this.selectCategory(i[0]);
|
|
534
606
|
}
|
|
535
607
|
},
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
608
|
+
beforeCreate() {
|
|
609
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Ne);
|
|
610
|
+
},
|
|
611
|
+
async created() {
|
|
612
|
+
var e, t, a, n;
|
|
613
|
+
if (this.canPurchase && await this.loadPrices(), (t = (e = this.$route) == null ? void 0 : e.query) != null && t.list) {
|
|
614
|
+
const [s] = this.$route.query.list.split(",");
|
|
615
|
+
this.activeCategory = this.allCategories.find(({ key: o }) => o === s);
|
|
616
|
+
}
|
|
617
|
+
await this.loadTemplateGallery();
|
|
618
|
+
const i = (n = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : n.id;
|
|
619
|
+
if (i)
|
|
620
|
+
try {
|
|
621
|
+
const s = this.templateGalleryItems.find(({ id: o }) => o === i);
|
|
622
|
+
this.selectGalleryItem(s);
|
|
623
|
+
} catch (s) {
|
|
624
|
+
S(s);
|
|
625
|
+
}
|
|
553
626
|
},
|
|
554
627
|
methods: {
|
|
555
|
-
|
|
628
|
+
...y({
|
|
629
|
+
loadPrices: m.LOAD_PRICES
|
|
630
|
+
}),
|
|
631
|
+
async loadTemplateGallery() {
|
|
556
632
|
this.isLoading = !0;
|
|
557
|
-
const
|
|
558
|
-
isVisibleApp: !0
|
|
633
|
+
const i = {
|
|
634
|
+
isVisibleApp: !0,
|
|
635
|
+
includePurchaseInfo: !0
|
|
559
636
|
};
|
|
560
|
-
this.language && (
|
|
637
|
+
this.language && (i.language = this.language);
|
|
561
638
|
try {
|
|
562
|
-
const
|
|
563
|
-
this.templateGalleryItems =
|
|
564
|
-
|
|
565
|
-
|
|
639
|
+
const e = await this.fetchGallery(i);
|
|
640
|
+
this.templateGalleryItems = (e || []).map((t) => {
|
|
641
|
+
if (this.canPurchase && t.isPurchasable) {
|
|
642
|
+
const a = ne(t, { availableProducts: this.stripeProducts });
|
|
643
|
+
a && (t.product = a);
|
|
644
|
+
}
|
|
645
|
+
return t;
|
|
646
|
+
}), this.availableCategoryKeys = e.reduce((t, a) => [.../* @__PURE__ */ new Set([...t, ...a.categories])], []);
|
|
647
|
+
} catch (e) {
|
|
648
|
+
S(e);
|
|
566
649
|
} finally {
|
|
567
|
-
this.isLoading = !1
|
|
650
|
+
this.isLoading = !1;
|
|
568
651
|
}
|
|
569
652
|
},
|
|
570
653
|
async getGalleryTemplate(i) {
|
|
@@ -572,9 +655,10 @@ const Kt = jt.exports, Yt = {
|
|
|
572
655
|
const e = {
|
|
573
656
|
_id: i,
|
|
574
657
|
populate: "templateId",
|
|
575
|
-
isVisibleApp: !0
|
|
658
|
+
isVisibleApp: !0,
|
|
659
|
+
includePurchaseInfo: !0
|
|
576
660
|
}, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
|
|
577
|
-
return a ? (
|
|
661
|
+
return a ? (_e(a), new ke(a)) : null;
|
|
578
662
|
},
|
|
579
663
|
onUseTemplate(i) {
|
|
580
664
|
if (!i)
|
|
@@ -597,17 +681,23 @@ const Kt = jt.exports, Yt = {
|
|
|
597
681
|
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
598
682
|
};
|
|
599
683
|
this.$modal.show(
|
|
600
|
-
|
|
684
|
+
Y1,
|
|
601
685
|
{
|
|
602
686
|
template: i,
|
|
687
|
+
fetchGallery: this.fetchGallery,
|
|
688
|
+
product: e.product,
|
|
689
|
+
galleryItemId: e.id,
|
|
603
690
|
meta: {
|
|
604
691
|
name: e.name,
|
|
605
692
|
text: e.description,
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
693
|
+
...this.showTemplateAuthor ? {
|
|
694
|
+
// Only show author if enabled)
|
|
695
|
+
author: {
|
|
696
|
+
name: this.$t("_common:brand.name"),
|
|
697
|
+
avatar: t[f.brand],
|
|
698
|
+
templatesCount: this.templateGalleryItems.length
|
|
699
|
+
}
|
|
700
|
+
} : {}
|
|
611
701
|
},
|
|
612
702
|
...this.modalProps
|
|
613
703
|
},
|
|
@@ -646,32 +736,33 @@ const Kt = jt.exports, Yt = {
|
|
|
646
736
|
selectGalleryItem: this.selectGalleryItem
|
|
647
737
|
});
|
|
648
738
|
}
|
|
649
|
-
},
|
|
650
|
-
var
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
739
|
+
}, J1 = null, X1 = null;
|
|
740
|
+
var e2 = /* @__PURE__ */ c(
|
|
741
|
+
Q1,
|
|
742
|
+
J1,
|
|
743
|
+
X1,
|
|
654
744
|
!1,
|
|
655
745
|
null,
|
|
656
746
|
null,
|
|
657
747
|
null,
|
|
658
748
|
null
|
|
659
749
|
);
|
|
660
|
-
const
|
|
661
|
-
const
|
|
750
|
+
const t2 = e2.exports;
|
|
751
|
+
const i2 = {
|
|
662
752
|
name: "DocumentIcon",
|
|
663
|
-
truncate:
|
|
753
|
+
truncate: Le,
|
|
664
754
|
inject: {
|
|
665
755
|
components: {
|
|
666
756
|
default: {
|
|
667
|
-
BlockMedia:
|
|
757
|
+
BlockMedia: tt
|
|
668
758
|
}
|
|
669
759
|
}
|
|
670
760
|
}
|
|
671
761
|
};
|
|
672
|
-
var
|
|
762
|
+
var a2 = function(e, t) {
|
|
673
763
|
return e("div", t._b({ key: t.data.key, staticClass: "item", class: [
|
|
674
764
|
t.data.staticClass,
|
|
765
|
+
t.data.class,
|
|
675
766
|
{
|
|
676
767
|
"is-placeholder": t.props.isPlaceholder,
|
|
677
768
|
"is-add": t.props.isAdd,
|
|
@@ -681,22 +772,22 @@ var i2 = function(e, t) {
|
|
|
681
772
|
t.listeners.click && t.listeners.click();
|
|
682
773
|
} } }, "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: {
|
|
683
774
|
backgroundImage: `url(${t.props.thumbnail})`
|
|
684
|
-
} }) : 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.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)]);
|
|
685
|
-
},
|
|
686
|
-
t2,
|
|
775
|
+
} }) : 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
|
+
}, n2 = [], s2 = /* @__PURE__ */ c(
|
|
687
777
|
i2,
|
|
688
778
|
a2,
|
|
779
|
+
n2,
|
|
689
780
|
!0,
|
|
690
781
|
null,
|
|
691
|
-
"
|
|
782
|
+
"7ebb1c9a",
|
|
692
783
|
null,
|
|
693
784
|
null
|
|
694
785
|
);
|
|
695
|
-
const
|
|
696
|
-
const
|
|
786
|
+
const o2 = s2.exports;
|
|
787
|
+
const l2 = {
|
|
697
788
|
name: "HorizontalScroll",
|
|
698
789
|
components: {
|
|
699
|
-
Simplebar:
|
|
790
|
+
Simplebar: b
|
|
700
791
|
},
|
|
701
792
|
data() {
|
|
702
793
|
return {
|
|
@@ -740,7 +831,7 @@ const o2 = {
|
|
|
740
831
|
}
|
|
741
832
|
}
|
|
742
833
|
};
|
|
743
|
-
var
|
|
834
|
+
var r2 = function() {
|
|
744
835
|
var e = this, t = e._self._c;
|
|
745
836
|
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) {
|
|
746
837
|
return e.go(-1);
|
|
@@ -753,18 +844,18 @@ var l2 = function() {
|
|
|
753
844
|
return e.$emit("expand");
|
|
754
845
|
} } })];
|
|
755
846
|
})], 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)]);
|
|
756
|
-
},
|
|
757
|
-
o2,
|
|
847
|
+
}, c2 = [], d2 = /* @__PURE__ */ c(
|
|
758
848
|
l2,
|
|
759
849
|
r2,
|
|
850
|
+
c2,
|
|
760
851
|
!1,
|
|
761
852
|
null,
|
|
762
853
|
"15f25c8e",
|
|
763
854
|
null,
|
|
764
855
|
null
|
|
765
856
|
);
|
|
766
|
-
const
|
|
767
|
-
const
|
|
857
|
+
const p2 = d2.exports;
|
|
858
|
+
const u2 = {
|
|
768
859
|
name: "DocumentFormRecent",
|
|
769
860
|
i18nOptions: {
|
|
770
861
|
namespaces: "DocumentFormRecent",
|
|
@@ -797,8 +888,8 @@ const p2 = {
|
|
|
797
888
|
this.onLoadDocuments();
|
|
798
889
|
},
|
|
799
890
|
methods: {
|
|
800
|
-
...
|
|
801
|
-
loadDocument:
|
|
891
|
+
...y({
|
|
892
|
+
loadDocument: m.LOAD_DOCUMENT2
|
|
802
893
|
}),
|
|
803
894
|
async onInput() {
|
|
804
895
|
this.isLoading = !0, this.onLoadDocuments();
|
|
@@ -806,7 +897,7 @@ const p2 = {
|
|
|
806
897
|
async fetchDocuments(i) {
|
|
807
898
|
const e = this.query ? 180 : 90, t = {
|
|
808
899
|
createdAt: {
|
|
809
|
-
$gte: this.$formatDate(
|
|
900
|
+
$gte: this.$formatDate($e(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
|
|
810
901
|
},
|
|
811
902
|
// Only provide or if there is a search query to filter on
|
|
812
903
|
...this.query && {
|
|
@@ -821,7 +912,7 @@ const p2 = {
|
|
|
821
912
|
}
|
|
822
913
|
]
|
|
823
914
|
}
|
|
824
|
-
}, { data: a } = await
|
|
915
|
+
}, { data: a } = await Se.getAll({
|
|
825
916
|
lean: !0,
|
|
826
917
|
filter: encodeURIComponent(JSON.stringify(t)),
|
|
827
918
|
fields: "clients,data.name,createdAt",
|
|
@@ -831,7 +922,7 @@ const p2 = {
|
|
|
831
922
|
}), { items: n = [] } = a || {};
|
|
832
923
|
return n;
|
|
833
924
|
},
|
|
834
|
-
onLoadDocuments:
|
|
925
|
+
onLoadDocuments: M(async function() {
|
|
835
926
|
this.isLoading = !0, this.hasItems = !0;
|
|
836
927
|
const e = await this.fetchDocuments();
|
|
837
928
|
(!e || !e.length) && (this.canFetchMore = !1), this.list = [...e || []], this.isLoading = !1;
|
|
@@ -843,7 +934,7 @@ const p2 = {
|
|
|
843
934
|
}
|
|
844
935
|
}
|
|
845
936
|
};
|
|
846
|
-
var
|
|
937
|
+
var m2 = function() {
|
|
847
938
|
var e = this, t = e._self._c;
|
|
848
939
|
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) {
|
|
849
940
|
e.query = a;
|
|
@@ -860,18 +951,18 @@ var u2 = function() {
|
|
|
860
951
|
return s.stopPropagation(), e.onSaveDocumentTemplate(a._id);
|
|
861
952
|
} } }, [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()]);
|
|
862
953
|
})], 2)]);
|
|
863
|
-
},
|
|
864
|
-
p2,
|
|
954
|
+
}, h2 = [], f2 = /* @__PURE__ */ c(
|
|
865
955
|
u2,
|
|
866
956
|
m2,
|
|
957
|
+
h2,
|
|
867
958
|
!1,
|
|
868
959
|
null,
|
|
869
960
|
"0096ccb0",
|
|
870
961
|
null,
|
|
871
962
|
null
|
|
872
963
|
);
|
|
873
|
-
const
|
|
874
|
-
const
|
|
964
|
+
const g2 = f2.exports;
|
|
965
|
+
const C2 = {
|
|
875
966
|
i18nOptions: {
|
|
876
967
|
namespaces: "TemplateSelector",
|
|
877
968
|
messages: {
|
|
@@ -889,7 +980,8 @@ const g2 = {
|
|
|
889
980
|
cancel: "Avbryt"
|
|
890
981
|
},
|
|
891
982
|
icon: {
|
|
892
|
-
tooltip: "Fler val"
|
|
983
|
+
tooltip: "Fler val",
|
|
984
|
+
freeTooltip: "Det här en gratismall som du kan använda obegränsat."
|
|
893
985
|
}
|
|
894
986
|
},
|
|
895
987
|
en: {
|
|
@@ -906,18 +998,20 @@ const g2 = {
|
|
|
906
998
|
cancel: "Cancel"
|
|
907
999
|
},
|
|
908
1000
|
icon: {
|
|
909
|
-
tooltip: "More options"
|
|
1001
|
+
tooltip: "More options",
|
|
1002
|
+
freeTooltip: "This is a template that you can use for free, without limitations."
|
|
910
1003
|
}
|
|
911
1004
|
}
|
|
912
1005
|
}
|
|
913
1006
|
},
|
|
914
|
-
name: "
|
|
915
|
-
mixins: [
|
|
1007
|
+
name: "TemplateSelector",
|
|
1008
|
+
mixins: [L],
|
|
916
1009
|
components: {
|
|
917
|
-
HorizontalScroll:
|
|
918
|
-
DocumentIcon:
|
|
919
|
-
DocumentRecent:
|
|
920
|
-
GalleryLogic:
|
|
1010
|
+
HorizontalScroll: p2,
|
|
1011
|
+
DocumentIcon: o2,
|
|
1012
|
+
DocumentRecent: g2,
|
|
1013
|
+
GalleryLogic: t2,
|
|
1014
|
+
IsPremiumPreStep: I
|
|
921
1015
|
},
|
|
922
1016
|
props: {
|
|
923
1017
|
// Used for creating documents form project/client views
|
|
@@ -945,9 +1039,17 @@ const g2 = {
|
|
|
945
1039
|
type: Boolean,
|
|
946
1040
|
default: !1
|
|
947
1041
|
},
|
|
1042
|
+
showGalleryTemplateAuthor: {
|
|
1043
|
+
type: Boolean,
|
|
1044
|
+
default: !0
|
|
1045
|
+
},
|
|
948
1046
|
listExpanded: {
|
|
949
1047
|
type: Boolean,
|
|
950
1048
|
default: !1
|
|
1049
|
+
},
|
|
1050
|
+
includePartnerTemplates: {
|
|
1051
|
+
type: Boolean,
|
|
1052
|
+
default: !1
|
|
951
1053
|
}
|
|
952
1054
|
},
|
|
953
1055
|
data() {
|
|
@@ -958,6 +1060,7 @@ const g2 = {
|
|
|
958
1060
|
},
|
|
959
1061
|
computed: {
|
|
960
1062
|
...g({
|
|
1063
|
+
canFeature: "application/feature",
|
|
961
1064
|
templateById: "templates/byId",
|
|
962
1065
|
isFetchingTemplates: "templates/isFetching",
|
|
963
1066
|
availableTemplates: "templates/availableTemplates",
|
|
@@ -979,7 +1082,7 @@ const g2 = {
|
|
|
979
1082
|
},
|
|
980
1083
|
myTemplates() {
|
|
981
1084
|
const i = [...this.availableTemplates];
|
|
982
|
-
return !i.length && this.isFetchingTemplates ? Array(5).fill({ placeholder: !0 }) : [{ id: "empty" }, ...i];
|
|
1085
|
+
return !i.length && this.isFetchingTemplates ? Array(5).fill({ placeholder: !0 }) : [{ id: "empty", doConsumeDocumentQuota: !0 }, ...i];
|
|
983
1086
|
},
|
|
984
1087
|
galleryModalProps() {
|
|
985
1088
|
const { fSkatt: i, insurance: e } = this.companySettings;
|
|
@@ -998,16 +1101,15 @@ const g2 = {
|
|
|
998
1101
|
this.loadTemplates();
|
|
999
1102
|
},
|
|
1000
1103
|
methods: {
|
|
1001
|
-
...
|
|
1002
|
-
loadTemplatesAction:
|
|
1003
|
-
loadTemplate:
|
|
1004
|
-
createTemplate:
|
|
1005
|
-
|
|
1006
|
-
deleteTemplate: u.DELETE_TEMPLATE
|
|
1104
|
+
...y({
|
|
1105
|
+
loadTemplatesAction: m.LOAD_TEMPLATES,
|
|
1106
|
+
loadTemplate: m.LOAD_TEMPLATE,
|
|
1107
|
+
createTemplate: m.DO_CREATE_TEMPLATE,
|
|
1108
|
+
removeTemplate: m.REMOVE_TEMPLATE
|
|
1007
1109
|
}),
|
|
1008
1110
|
loadTemplates() {
|
|
1009
1111
|
const i = {};
|
|
1010
|
-
this.defaultLanguage && (i.sharedLanguage = this.defaultLanguage), this.loadTemplatesAction(i), this.isAuthenticatedCRM("hubspot") && this.loadTemplate({ id: "hubspot" });
|
|
1112
|
+
this.defaultLanguage && (i.sharedLanguage = this.defaultLanguage), this.includePartnerTemplates && (i.includePartnerTemplates = !0), this.loadTemplatesAction(i), this.isAuthenticatedCRM("hubspot") && this.loadTemplate({ id: "hubspot" });
|
|
1011
1113
|
},
|
|
1012
1114
|
select({ templateId: i, documentId: e, formData: t }) {
|
|
1013
1115
|
return this.onUseTemplate({
|
|
@@ -1020,19 +1122,16 @@ const g2 = {
|
|
|
1020
1122
|
},
|
|
1021
1123
|
async saveTemplate(i) {
|
|
1022
1124
|
try {
|
|
1023
|
-
const { data: e } = i, t =
|
|
1125
|
+
const { data: e } = i, t = Te(e, ["_id", "id", "companyId", "isVisible"]);
|
|
1024
1126
|
return await this.createTemplate({ body: t }), !0;
|
|
1025
1127
|
} catch (e) {
|
|
1026
|
-
|
|
1128
|
+
S(e);
|
|
1027
1129
|
}
|
|
1028
1130
|
return !1;
|
|
1029
1131
|
},
|
|
1030
|
-
async onRemoveTemplate(i) {
|
|
1031
|
-
i.companyId ? await this.deleteTemplate({ id: i.id }) : await this.hideTemplate({ id: i.id });
|
|
1032
|
-
},
|
|
1033
1132
|
async openTemplateFormModal({ document: i = null, template: e = null }) {
|
|
1034
1133
|
this.$modal.show(
|
|
1035
|
-
|
|
1134
|
+
ae,
|
|
1036
1135
|
{
|
|
1037
1136
|
document: i,
|
|
1038
1137
|
template: e,
|
|
@@ -1049,28 +1148,41 @@ const g2 = {
|
|
|
1049
1148
|
);
|
|
1050
1149
|
},
|
|
1051
1150
|
async fetchGallery(i = {}) {
|
|
1052
|
-
const { data: e } = await
|
|
1151
|
+
const { data: e } = await De.get(i);
|
|
1053
1152
|
return e;
|
|
1153
|
+
},
|
|
1154
|
+
canUseTemplate(i) {
|
|
1155
|
+
return i.doConsumeDocumentQuota ? this.canFeature("editDocLayout") : !0;
|
|
1054
1156
|
}
|
|
1055
1157
|
}
|
|
1056
1158
|
};
|
|
1057
|
-
var
|
|
1159
|
+
var v2 = function() {
|
|
1058
1160
|
var e = this, t = e._self._c;
|
|
1059
|
-
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(
|
|
1060
|
-
e.isExpanded
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
n.
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1161
|
+
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
|
+
return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
|
|
1163
|
+
e.isExpanded = !0;
|
|
1164
|
+
} } }, e._l(e.myTemplates, function(n) {
|
|
1165
|
+
return t("DocumentIcon", { key: n.id, staticClass: "template-item", attrs: { "is-add": n.id === "empty", "is-placeholder": n.placeholder, media: n.defaultMedia || e.fallbackMedia, thumbnail: n.thumbnailUrl, name: n.name }, on: { click: function(s) {
|
|
1166
|
+
n.placeholder || (e.canUseTemplate(n) ? e.select({ templateId: n.id }) : a());
|
|
1167
|
+
} } }, [e.canUseTemplate(n) ? !n.doConsumeDocumentQuota && !n.placeholder ? t("div", { staticClass: "text-[11px] h-5 capitalize font-semibold text-white bg-primary-500 rounded leading-none px-1.5 inline-flex items-center border border-primary-600 shadow-sm", attrs: { slot: "badge" }, slot: "badge" }, [e._v(" " + e._s(e.$t("_common:free")) + " ")]) : e._e() : t("div", { staticClass: "inline-flex items-center h-5 gap-1 px-1 leading-none bg-gray-200 border border-gray-300 rounded shadow-sm text-gray-500/90", attrs: { slot: "badge" }, slot: "badge" }, [t("BaseIcon", { attrs: { type: "lock", size: "12", "stroke-width": "2.5" } }), t("div", { staticClass: "text-[11px] font-semibold" }, [e._v("Pro")])], 1), n.onModify === "create" && !n.doConsumeDocumentQuota ? t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
|
|
1168
|
+
content: e.$t("icon.freeTooltip"),
|
|
1169
|
+
placement: "bottom"
|
|
1170
|
+
}, expression: `{
|
|
1171
|
+
content: $t('icon.freeTooltip'),
|
|
1172
|
+
placement: 'bottom'
|
|
1173
|
+
}` }], staticStyle: { top: "-8px", right: "-4px" }, attrs: { icon: "info", type: "none", pattern: "tertiary", size: "small" }, nativeOn: { click: function(s) {
|
|
1174
|
+
s.stopPropagation();
|
|
1175
|
+
} } }) : t("CDropdown", { staticStyle: { top: "-8px", right: "-4px" }, attrs: { "append-to-body": "" }, nativeOn: { click: function(s) {
|
|
1176
|
+
s.stopPropagation();
|
|
1177
|
+
} } }, [t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("icon.tooltip"), expression: "$t('icon.tooltip')" }], attrs: { slot: "trigger", icon: "more-vertical", type: "none", pattern: "tertiary", size: "small" }, slot: "trigger" }), e.onEditTemplate ? t("CDropdownItem", { attrs: { "icon-left": "template-color" }, on: { click: function(s) {
|
|
1178
|
+
return e.onEditTemplate(n.id);
|
|
1179
|
+
} } }, [e._v(" " + e._s(e.$t("_common:edit", { thing: e.$t("_common:template") })) + " ")]) : e._e(), t("CDropdownItem", { attrs: { "icon-props": { size: 16 }, "icon-left": "edit" }, on: { click: function(s) {
|
|
1180
|
+
return e.openTemplateFormModal({ template: n });
|
|
1181
|
+
} } }, [e._v(" " + e._s(e.$t("_common:change", { thing: e.$t("_common:name") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), t("CDropdownItem", { attrs: { "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" }, "icon-left": "trash" }, on: { click: function(s) {
|
|
1182
|
+
return e.removeTemplate({ template: n });
|
|
1183
|
+
} } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 1)], 1);
|
|
1184
|
+
}), 1)];
|
|
1185
|
+
} }]) })], 1), e.showGallery ? [t("GalleryLogic", { attrs: { "fetch-gallery": e.fetchGallery, "use-template": e.select, "show-template-author": e.showGalleryTemplateAuthor, "modal-props": e.galleryModalProps }, scopedSlots: e._u([{ key: "default", fn: function({
|
|
1074
1186
|
galleryItems: a,
|
|
1075
1187
|
categories: n,
|
|
1076
1188
|
activeCategory: s,
|
|
@@ -1086,21 +1198,21 @@ var C2 = function() {
|
|
|
1086
1198
|
})], 2)], 1), t("HorizontalScroll", { staticClass: "template-list" }, e._l(a, function(r) {
|
|
1087
1199
|
return t("DocumentIcon", { key: r.id, staticClass: "template-item", attrs: { "is-placeholder": r.placeholder, media: { type: "image", resourceUrl: r.backgroundUrl }, name: r.name }, on: { click: function(p) {
|
|
1088
1200
|
r.placeholder || l(r);
|
|
1089
|
-
} } });
|
|
1201
|
+
} } }, [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()]);
|
|
1090
1202
|
}), 1)], 1)];
|
|
1091
|
-
} }], null, !1,
|
|
1092
|
-
},
|
|
1093
|
-
g2,
|
|
1203
|
+
} }], 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
|
+
}, y2 = [], x2 = /* @__PURE__ */ c(
|
|
1094
1205
|
C2,
|
|
1095
1206
|
v2,
|
|
1207
|
+
y2,
|
|
1096
1208
|
!1,
|
|
1097
1209
|
null,
|
|
1098
|
-
"
|
|
1210
|
+
"b0c014da",
|
|
1099
1211
|
null,
|
|
1100
1212
|
null
|
|
1101
1213
|
);
|
|
1102
|
-
const
|
|
1103
|
-
const
|
|
1214
|
+
const w2 = x2.exports;
|
|
1215
|
+
const b2 = (i) => {
|
|
1104
1216
|
const e = Array(2).fill().map(() => d());
|
|
1105
1217
|
return [
|
|
1106
1218
|
{
|
|
@@ -1131,13 +1243,13 @@ const w2 = (i) => {
|
|
|
1131
1243
|
$ref: `${f.api.baseUrl}/schemas/file/1.json`
|
|
1132
1244
|
}
|
|
1133
1245
|
}
|
|
1134
|
-
],
|
|
1246
|
+
], k2 = ({ document: i = null }) => {
|
|
1135
1247
|
const e = d(), { language: t } = i || {};
|
|
1136
1248
|
return {
|
|
1137
|
-
readView:
|
|
1249
|
+
readView: b2(e),
|
|
1138
1250
|
validation: _2(e, t)
|
|
1139
1251
|
};
|
|
1140
|
-
},
|
|
1252
|
+
}, L2 = () => [
|
|
1141
1253
|
{
|
|
1142
1254
|
itemId: "presentation",
|
|
1143
1255
|
itemType: "presentation",
|
|
@@ -1145,11 +1257,11 @@ const w2 = (i) => {
|
|
|
1145
1257
|
parentId: "0",
|
|
1146
1258
|
nodeId: d()
|
|
1147
1259
|
}
|
|
1148
|
-
],
|
|
1149
|
-
readView:
|
|
1260
|
+
], $2 = () => ({
|
|
1261
|
+
readView: L2(),
|
|
1150
1262
|
validation: []
|
|
1151
1263
|
// all relevant data is either within base doc or company settings etc
|
|
1152
|
-
}),
|
|
1264
|
+
}), S2 = () => {
|
|
1153
1265
|
const i = Array(2).fill().map(() => d());
|
|
1154
1266
|
return [
|
|
1155
1267
|
{
|
|
@@ -1172,19 +1284,19 @@ const w2 = (i) => {
|
|
|
1172
1284
|
// uniqid(),
|
|
1173
1285
|
}
|
|
1174
1286
|
];
|
|
1175
|
-
},
|
|
1287
|
+
}, T2 = (i = "en") => [
|
|
1176
1288
|
{
|
|
1177
1289
|
key: "multiGroupPricing-title",
|
|
1178
1290
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
1179
1291
|
defaultValue: h.t("components:document.chapters.multiGroupPricing.title", { lng: i })
|
|
1180
1292
|
}
|
|
1181
|
-
],
|
|
1293
|
+
], D2 = ({ document: i = null }) => {
|
|
1182
1294
|
const { language: e } = i || {};
|
|
1183
1295
|
return {
|
|
1184
|
-
readView:
|
|
1185
|
-
validation:
|
|
1296
|
+
readView: S2(),
|
|
1297
|
+
validation: T2(e)
|
|
1186
1298
|
};
|
|
1187
|
-
},
|
|
1299
|
+
}, V2 = () => [
|
|
1188
1300
|
{
|
|
1189
1301
|
itemId: "terms",
|
|
1190
1302
|
itemType: "termsDisclaimer",
|
|
@@ -1202,7 +1314,7 @@ const w2 = (i) => {
|
|
|
1202
1314
|
parentId: "0",
|
|
1203
1315
|
nodeId: d()
|
|
1204
1316
|
}
|
|
1205
|
-
],
|
|
1317
|
+
], B2 = () => [
|
|
1206
1318
|
{
|
|
1207
1319
|
key: "terms",
|
|
1208
1320
|
anyOf: [
|
|
@@ -1211,9 +1323,9 @@ const w2 = (i) => {
|
|
|
1211
1323
|
]
|
|
1212
1324
|
}
|
|
1213
1325
|
], M2 = () => ({
|
|
1214
|
-
readView:
|
|
1215
|
-
validation:
|
|
1216
|
-
}),
|
|
1326
|
+
readView: V2(),
|
|
1327
|
+
validation: B2()
|
|
1328
|
+
}), I2 = () => {
|
|
1217
1329
|
const i = Array(5).fill().map(() => d());
|
|
1218
1330
|
return [
|
|
1219
1331
|
{
|
|
@@ -1262,7 +1374,7 @@ const w2 = (i) => {
|
|
|
1262
1374
|
nodeId: i[4]
|
|
1263
1375
|
}
|
|
1264
1376
|
];
|
|
1265
|
-
},
|
|
1377
|
+
}, F2 = () => ({
|
|
1266
1378
|
clients: [{
|
|
1267
1379
|
name: "Pernilla P.",
|
|
1268
1380
|
email: "pernilla@mail.se",
|
|
@@ -1272,20 +1384,20 @@ const w2 = (i) => {
|
|
|
1272
1384
|
deliveryTypes: ["email"],
|
|
1273
1385
|
answerMethod: { accept: "signature", deny: "button" }
|
|
1274
1386
|
}]
|
|
1275
|
-
}),
|
|
1387
|
+
}), H2 = (i = "en") => [
|
|
1276
1388
|
{ key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1277
1389
|
{ key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1278
1390
|
{ key: "partiesString", anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("components:document.chapters.parties.title", { lng: i }) }
|
|
1279
|
-
],
|
|
1391
|
+
], A2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
1280
1392
|
const { language: a } = e || {};
|
|
1281
1393
|
let n = null;
|
|
1282
|
-
return typeof t == "function" ? n = t() : i && (n =
|
|
1283
|
-
readView:
|
|
1284
|
-
validation:
|
|
1394
|
+
return typeof t == "function" ? n = t() : i && (n = F2()), {
|
|
1395
|
+
readView: I2(),
|
|
1396
|
+
validation: H2(a),
|
|
1285
1397
|
// Client / company will for now always exist on doc and in validation
|
|
1286
1398
|
...n && { data: n }
|
|
1287
1399
|
};
|
|
1288
|
-
},
|
|
1400
|
+
}, P2 = (i) => {
|
|
1289
1401
|
const e = Array(3).fill().map(() => d());
|
|
1290
1402
|
return [
|
|
1291
1403
|
{
|
|
@@ -1314,7 +1426,7 @@ const w2 = (i) => {
|
|
|
1314
1426
|
nodeId: e[2]
|
|
1315
1427
|
}
|
|
1316
1428
|
];
|
|
1317
|
-
},
|
|
1429
|
+
}, E2 = (i) => [
|
|
1318
1430
|
{
|
|
1319
1431
|
key: `estimatedTimeComplete-${i}`,
|
|
1320
1432
|
type: "object",
|
|
@@ -1335,20 +1447,20 @@ const w2 = (i) => {
|
|
|
1335
1447
|
}
|
|
1336
1448
|
}
|
|
1337
1449
|
}
|
|
1338
|
-
],
|
|
1450
|
+
], z2 = (i) => ({
|
|
1339
1451
|
[`estimatedTimeComplete-${i}`]: {
|
|
1340
1452
|
value: 4,
|
|
1341
1453
|
unitType: "hour"
|
|
1342
1454
|
}
|
|
1343
|
-
}),
|
|
1455
|
+
}), Z2 = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1344
1456
|
const t = d();
|
|
1345
1457
|
let a = null;
|
|
1346
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1347
|
-
readView:
|
|
1348
|
-
validation:
|
|
1458
|
+
return typeof e == "function" ? a = e(t) : i && (a = z2(t)), {
|
|
1459
|
+
readView: P2(t),
|
|
1460
|
+
validation: E2(t),
|
|
1349
1461
|
...a && { data: a }
|
|
1350
1462
|
};
|
|
1351
|
-
},
|
|
1463
|
+
}, O2 = () => {
|
|
1352
1464
|
const i = Array(3).fill().map(() => d());
|
|
1353
1465
|
return [
|
|
1354
1466
|
{
|
|
@@ -1382,7 +1494,7 @@ const w2 = (i) => {
|
|
|
1382
1494
|
nodeId: i[2]
|
|
1383
1495
|
}
|
|
1384
1496
|
];
|
|
1385
|
-
},
|
|
1497
|
+
}, R2 = () => [
|
|
1386
1498
|
{
|
|
1387
1499
|
key: "estimatedWorkDates",
|
|
1388
1500
|
type: "object",
|
|
@@ -1391,10 +1503,10 @@ const w2 = (i) => {
|
|
|
1391
1503
|
endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
|
|
1392
1504
|
}
|
|
1393
1505
|
}
|
|
1394
|
-
],
|
|
1395
|
-
readView:
|
|
1396
|
-
validation:
|
|
1397
|
-
}),
|
|
1506
|
+
], G2 = () => ({
|
|
1507
|
+
readView: O2(),
|
|
1508
|
+
validation: R2()
|
|
1509
|
+
}), U2 = () => {
|
|
1398
1510
|
const i = Array(5).fill().map(() => d());
|
|
1399
1511
|
return [
|
|
1400
1512
|
{
|
|
@@ -1460,7 +1572,7 @@ const w2 = (i) => {
|
|
|
1460
1572
|
nodeId: i[4]
|
|
1461
1573
|
}
|
|
1462
1574
|
];
|
|
1463
|
-
},
|
|
1575
|
+
}, W2 = () => [
|
|
1464
1576
|
{
|
|
1465
1577
|
key: "extraWorkConstruction",
|
|
1466
1578
|
extraWorkConstruction: {
|
|
@@ -1484,11 +1596,11 @@ const w2 = (i) => {
|
|
|
1484
1596
|
}
|
|
1485
1597
|
}
|
|
1486
1598
|
}
|
|
1487
|
-
],
|
|
1488
|
-
readView:
|
|
1489
|
-
validation:
|
|
1599
|
+
], q2 = () => ({
|
|
1600
|
+
readView: U2(),
|
|
1601
|
+
validation: W2()
|
|
1490
1602
|
// Client / company will for now always exist on doc and in validation
|
|
1491
|
-
}),
|
|
1603
|
+
}), N2 = () => {
|
|
1492
1604
|
const i = Array(3).fill().map(() => d());
|
|
1493
1605
|
return [
|
|
1494
1606
|
{
|
|
@@ -1528,7 +1640,7 @@ const w2 = (i) => {
|
|
|
1528
1640
|
nodeId: i[2]
|
|
1529
1641
|
}
|
|
1530
1642
|
];
|
|
1531
|
-
},
|
|
1643
|
+
}, j2 = () => [
|
|
1532
1644
|
{
|
|
1533
1645
|
key: "extraWorkTimeImpact",
|
|
1534
1646
|
anyOf: [
|
|
@@ -1552,10 +1664,10 @@ const w2 = (i) => {
|
|
|
1552
1664
|
}
|
|
1553
1665
|
]
|
|
1554
1666
|
}
|
|
1555
|
-
],
|
|
1556
|
-
readView:
|
|
1557
|
-
validation:
|
|
1558
|
-
}),
|
|
1667
|
+
], K2 = () => ({
|
|
1668
|
+
readView: N2(),
|
|
1669
|
+
validation: j2()
|
|
1670
|
+
}), Y2 = () => {
|
|
1559
1671
|
const i = Array(5).fill().map(() => d());
|
|
1560
1672
|
return [
|
|
1561
1673
|
{
|
|
@@ -1608,13 +1720,13 @@ const w2 = (i) => {
|
|
|
1608
1720
|
nodeId: i[4]
|
|
1609
1721
|
}
|
|
1610
1722
|
];
|
|
1611
|
-
},
|
|
1723
|
+
}, Q2 = () => [
|
|
1612
1724
|
{ key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
|
|
1613
1725
|
{ key: "notBinding", type: "boolean" }
|
|
1614
|
-
],
|
|
1615
|
-
readView:
|
|
1616
|
-
validation:
|
|
1617
|
-
}),
|
|
1726
|
+
], J2 = () => ({
|
|
1727
|
+
readView: Y2(),
|
|
1728
|
+
validation: Q2()
|
|
1729
|
+
}), X2 = (i) => {
|
|
1618
1730
|
const e = Array(2).fill().map(() => d());
|
|
1619
1731
|
return [
|
|
1620
1732
|
{
|
|
@@ -1636,22 +1748,22 @@ const w2 = (i) => {
|
|
|
1636
1748
|
nodeId: e[1]
|
|
1637
1749
|
}
|
|
1638
1750
|
];
|
|
1639
|
-
},
|
|
1751
|
+
}, ei = (i) => [
|
|
1640
1752
|
{ key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: "" },
|
|
1641
1753
|
{ key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
|
|
1642
|
-
],
|
|
1754
|
+
], ti = (i) => ({
|
|
1643
1755
|
[`data.title-${i}`]: "My custom text",
|
|
1644
1756
|
[`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>"
|
|
1645
|
-
}),
|
|
1757
|
+
}), ii = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1646
1758
|
const t = d();
|
|
1647
1759
|
let a = null;
|
|
1648
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1649
|
-
readView:
|
|
1650
|
-
validation:
|
|
1760
|
+
return typeof e == "function" ? a = e(t) : i && (a = ti(t)), {
|
|
1761
|
+
readView: X2(t),
|
|
1762
|
+
validation: ei(t),
|
|
1651
1763
|
...a && { data: a },
|
|
1652
1764
|
onAddFnName: "conditionalOnAdd"
|
|
1653
1765
|
};
|
|
1654
|
-
},
|
|
1766
|
+
}, ai = (i) => [
|
|
1655
1767
|
{
|
|
1656
1768
|
itemId: "coverBlock",
|
|
1657
1769
|
itemType: "coverBlock",
|
|
@@ -1661,7 +1773,7 @@ const w2 = (i) => {
|
|
|
1661
1773
|
parentId: "0",
|
|
1662
1774
|
nodeId: d()
|
|
1663
1775
|
}
|
|
1664
|
-
],
|
|
1776
|
+
], ni = (i, e = "en") => [
|
|
1665
1777
|
{
|
|
1666
1778
|
key: `coverBlock-${i}`,
|
|
1667
1779
|
defaultValue: {
|
|
@@ -1678,7 +1790,7 @@ const w2 = (i) => {
|
|
|
1678
1790
|
},
|
|
1679
1791
|
$ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
|
|
1680
1792
|
}
|
|
1681
|
-
],
|
|
1793
|
+
], si = (i) => ({
|
|
1682
1794
|
[`data.coverBlock-${i}`]: {
|
|
1683
1795
|
text: "<h1>We know communication</h1>",
|
|
1684
1796
|
cover: {
|
|
@@ -1688,15 +1800,15 @@ const w2 = (i) => {
|
|
|
1688
1800
|
blur: 0
|
|
1689
1801
|
}
|
|
1690
1802
|
}
|
|
1691
|
-
}),
|
|
1803
|
+
}), oi = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
1692
1804
|
const a = d(), { language: n } = e || {};
|
|
1693
1805
|
let s = null;
|
|
1694
|
-
return typeof t == "function" ? s = t(a) : i && (s =
|
|
1695
|
-
readView:
|
|
1696
|
-
validation:
|
|
1806
|
+
return typeof t == "function" ? s = t(a) : i && (s = si(a)), {
|
|
1807
|
+
readView: ai(a),
|
|
1808
|
+
validation: ni(a, n),
|
|
1697
1809
|
...s && { data: s }
|
|
1698
1810
|
};
|
|
1699
|
-
},
|
|
1811
|
+
}, li = ({ language: i = "en" } = {}) => {
|
|
1700
1812
|
const e = (t) => h.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
|
|
1701
1813
|
lng: i
|
|
1702
1814
|
});
|
|
@@ -1841,7 +1953,7 @@ const w2 = (i) => {
|
|
|
1841
1953
|
})
|
|
1842
1954
|
}
|
|
1843
1955
|
];
|
|
1844
|
-
},
|
|
1956
|
+
}, ri = (i) => [
|
|
1845
1957
|
{
|
|
1846
1958
|
itemId: `header-${i}`,
|
|
1847
1959
|
itemType: "header",
|
|
@@ -1851,7 +1963,7 @@ const w2 = (i) => {
|
|
|
1851
1963
|
parentId: "0",
|
|
1852
1964
|
nodeId: d()
|
|
1853
1965
|
}
|
|
1854
|
-
],
|
|
1966
|
+
], ci = (i, e = null) => {
|
|
1855
1967
|
const {
|
|
1856
1968
|
language: t = "en",
|
|
1857
1969
|
name: a = "",
|
|
@@ -1862,7 +1974,7 @@ const w2 = (i) => {
|
|
|
1862
1974
|
background: o,
|
|
1863
1975
|
priceSummaryBackground: l,
|
|
1864
1976
|
backgroundFilter: r
|
|
1865
|
-
} = n || {}, p = l || "hsl(228, 52%, 18%)", C =
|
|
1977
|
+
} = n || {}, p = l || "hsl(228, 52%, 18%)", C = nt.readability(p, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
|
|
1866
1978
|
return [
|
|
1867
1979
|
{
|
|
1868
1980
|
key: `header-${i}`,
|
|
@@ -1903,7 +2015,7 @@ const w2 = (i) => {
|
|
|
1903
2015
|
}
|
|
1904
2016
|
}
|
|
1905
2017
|
];
|
|
1906
|
-
},
|
|
2018
|
+
}, di = (i) => ({
|
|
1907
2019
|
[`data.header-${i}`]: {
|
|
1908
2020
|
layout: "vertical",
|
|
1909
2021
|
baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
|
|
@@ -1933,15 +2045,15 @@ const w2 = (i) => {
|
|
|
1933
2045
|
}
|
|
1934
2046
|
]
|
|
1935
2047
|
}
|
|
1936
|
-
}),
|
|
2048
|
+
}), pi = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
1937
2049
|
const a = d();
|
|
1938
2050
|
let n = null;
|
|
1939
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
1940
|
-
readView:
|
|
1941
|
-
validation:
|
|
2051
|
+
return typeof t == "function" ? n = t(a) : i && (n = di(a)), {
|
|
2052
|
+
readView: ri(a),
|
|
2053
|
+
validation: ci(a, e),
|
|
1942
2054
|
...n && { data: n }
|
|
1943
2055
|
};
|
|
1944
|
-
},
|
|
2056
|
+
}, ui = ({ language: i = "en" } = {}) => {
|
|
1945
2057
|
const e = (t) => h.t(`components:account.documentForm.contentItems.header.${t}`, {
|
|
1946
2058
|
lng: i,
|
|
1947
2059
|
interpolation: { prefix: "__", suffix: "__" }
|
|
@@ -2241,7 +2353,7 @@ h.loadOptions({
|
|
|
2241
2353
|
}
|
|
2242
2354
|
}
|
|
2243
2355
|
});
|
|
2244
|
-
const
|
|
2356
|
+
const mi = (i) => {
|
|
2245
2357
|
const e = Array(2).fill().map(() => d());
|
|
2246
2358
|
return [
|
|
2247
2359
|
{
|
|
@@ -2266,7 +2378,7 @@ const ui = (i) => {
|
|
|
2266
2378
|
nodeId: e[1]
|
|
2267
2379
|
}
|
|
2268
2380
|
];
|
|
2269
|
-
},
|
|
2381
|
+
}, hi = (i, e = "en") => [
|
|
2270
2382
|
{
|
|
2271
2383
|
key: `packageGroups.${i}`,
|
|
2272
2384
|
validationKey: "packageGroups",
|
|
@@ -2286,11 +2398,11 @@ const ui = (i) => {
|
|
|
2286
2398
|
},
|
|
2287
2399
|
$ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
|
|
2288
2400
|
}
|
|
2289
|
-
],
|
|
2401
|
+
], fi = () => null, gi = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
|
|
2290
2402
|
const a = d(), { language: n } = e || {};
|
|
2291
2403
|
let s = null;
|
|
2292
|
-
typeof t == "function" ? s = t(a) : i && (s =
|
|
2293
|
-
const o =
|
|
2404
|
+
typeof t == "function" ? s = t(a) : i && (s = fi());
|
|
2405
|
+
const o = mi(a), l = hi(a, n);
|
|
2294
2406
|
return {
|
|
2295
2407
|
readView: o,
|
|
2296
2408
|
validation: l,
|
|
@@ -2382,13 +2494,13 @@ h.loadOptions({
|
|
|
2382
2494
|
}
|
|
2383
2495
|
}
|
|
2384
2496
|
});
|
|
2385
|
-
const
|
|
2497
|
+
const Ci = ({
|
|
2386
2498
|
language: i = "en",
|
|
2387
2499
|
currency: e = "USD",
|
|
2388
2500
|
_getters: t,
|
|
2389
2501
|
allArticles: a = []
|
|
2390
2502
|
} = {}) => {
|
|
2391
|
-
const n =
|
|
2503
|
+
const n = u(t, "settings/defaultVatRate") || null, s = !u(t, "settings/hidePriceOnNewlyAddedArticles"), o = (l) => h.t(`packageGroupContentItems:${l}`, { lng: i });
|
|
2392
2504
|
return [
|
|
2393
2505
|
{
|
|
2394
2506
|
previewUrl: `
|
|
@@ -2455,7 +2567,7 @@ const gi = ({
|
|
|
2455
2567
|
},
|
|
2456
2568
|
articles: [
|
|
2457
2569
|
...a,
|
|
2458
|
-
|
|
2570
|
+
x({
|
|
2459
2571
|
vat: n,
|
|
2460
2572
|
showPrice: s,
|
|
2461
2573
|
currency: e,
|
|
@@ -2584,7 +2696,7 @@ const gi = ({
|
|
|
2584
2696
|
},
|
|
2585
2697
|
articles: [
|
|
2586
2698
|
...a,
|
|
2587
|
-
|
|
2699
|
+
x({
|
|
2588
2700
|
vat: n,
|
|
2589
2701
|
showPrice: s,
|
|
2590
2702
|
currency: e,
|
|
@@ -2592,7 +2704,7 @@ const gi = ({
|
|
|
2592
2704
|
name: o("radio.artA"),
|
|
2593
2705
|
price: 1e5
|
|
2594
2706
|
}),
|
|
2595
|
-
|
|
2707
|
+
x({
|
|
2596
2708
|
vat: n,
|
|
2597
2709
|
showPrice: s,
|
|
2598
2710
|
currency: e,
|
|
@@ -2718,7 +2830,7 @@ const gi = ({
|
|
|
2718
2830
|
},
|
|
2719
2831
|
articles: [
|
|
2720
2832
|
...a,
|
|
2721
|
-
|
|
2833
|
+
x({
|
|
2722
2834
|
vat: n,
|
|
2723
2835
|
showPrice: s,
|
|
2724
2836
|
currency: e,
|
|
@@ -2726,7 +2838,7 @@ const gi = ({
|
|
|
2726
2838
|
name: o("checkbox.artBase"),
|
|
2727
2839
|
price: 1e5
|
|
2728
2840
|
}),
|
|
2729
|
-
|
|
2841
|
+
x({
|
|
2730
2842
|
vat: n,
|
|
2731
2843
|
showPrice: s,
|
|
2732
2844
|
currency: e,
|
|
@@ -2739,7 +2851,7 @@ const gi = ({
|
|
|
2739
2851
|
}
|
|
2740
2852
|
}
|
|
2741
2853
|
];
|
|
2742
|
-
},
|
|
2854
|
+
}, vi = (i) => [
|
|
2743
2855
|
{
|
|
2744
2856
|
itemId: "embed",
|
|
2745
2857
|
itemType: "embed",
|
|
@@ -2753,7 +2865,7 @@ const gi = ({
|
|
|
2753
2865
|
parentId: "0",
|
|
2754
2866
|
nodeId: d()
|
|
2755
2867
|
}
|
|
2756
|
-
],
|
|
2868
|
+
], yi = (i) => [
|
|
2757
2869
|
{
|
|
2758
2870
|
key: `embed-${i}`,
|
|
2759
2871
|
$ref: `${f.api.baseUrl}/schemas/embed/1.json`,
|
|
@@ -2762,12 +2874,12 @@ const gi = ({
|
|
|
2762
2874
|
size: "small"
|
|
2763
2875
|
}
|
|
2764
2876
|
}
|
|
2765
|
-
],
|
|
2877
|
+
], xi = () => null, wi = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
2766
2878
|
const a = d();
|
|
2767
2879
|
let n = null;
|
|
2768
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
2769
|
-
readView:
|
|
2770
|
-
validation:
|
|
2880
|
+
return typeof t == "function" ? n = t(a) : i && (n = xi()), {
|
|
2881
|
+
readView: vi(a),
|
|
2882
|
+
validation: yi(a),
|
|
2771
2883
|
...n && { data: n }
|
|
2772
2884
|
};
|
|
2773
2885
|
};
|
|
@@ -2782,7 +2894,7 @@ h.loadOptions({
|
|
|
2782
2894
|
}
|
|
2783
2895
|
}
|
|
2784
2896
|
});
|
|
2785
|
-
const
|
|
2897
|
+
const bi = ({ language: i = "en" } = {}) => [
|
|
2786
2898
|
{
|
|
2787
2899
|
previewUrl: `
|
|
2788
2900
|
<div style="position: relative;">
|
|
@@ -3087,7 +3199,7 @@ const wi = ({ language: i = "en" } = {}) => [
|
|
|
3087
3199
|
parentId: "0",
|
|
3088
3200
|
nodeId: d()
|
|
3089
3201
|
}
|
|
3090
|
-
],
|
|
3202
|
+
], ki = (i) => [
|
|
3091
3203
|
{
|
|
3092
3204
|
key: `video-${i}`,
|
|
3093
3205
|
$ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
|
|
@@ -3098,7 +3210,7 @@ const wi = ({ language: i = "en" } = {}) => [
|
|
|
3098
3210
|
}
|
|
3099
3211
|
}
|
|
3100
3212
|
}
|
|
3101
|
-
],
|
|
3213
|
+
], Li = (i) => ({
|
|
3102
3214
|
[`data.video-${i}`]: {
|
|
3103
3215
|
size: "small",
|
|
3104
3216
|
video: {
|
|
@@ -3107,15 +3219,15 @@ const wi = ({ language: i = "en" } = {}) => [
|
|
|
3107
3219
|
id: "166JEb6qkr4"
|
|
3108
3220
|
}
|
|
3109
3221
|
}
|
|
3110
|
-
}),
|
|
3222
|
+
}), $i = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
3111
3223
|
const t = d();
|
|
3112
3224
|
let a = null;
|
|
3113
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
3225
|
+
return typeof e == "function" ? a = e(t) : i && (a = Li(t)), {
|
|
3114
3226
|
readView: _i(t),
|
|
3115
|
-
validation:
|
|
3227
|
+
validation: ki(t),
|
|
3116
3228
|
...a && { data: a }
|
|
3117
3229
|
};
|
|
3118
|
-
},
|
|
3230
|
+
}, Si = ({ language: i = "en" } = {}) => [
|
|
3119
3231
|
{
|
|
3120
3232
|
previewUrl: `
|
|
3121
3233
|
<div style="position: relative;">
|
|
@@ -3316,35 +3428,35 @@ const wi = ({ language: i = "en" } = {}) => [
|
|
|
3316
3428
|
}
|
|
3317
3429
|
})
|
|
3318
3430
|
}
|
|
3319
|
-
],
|
|
3320
|
-
titleAndText2:
|
|
3321
|
-
attachments2:
|
|
3322
|
-
pdf:
|
|
3323
|
-
packageGroup: fi,
|
|
3324
|
-
multiGroupPricing: V2,
|
|
3325
|
-
coverBlock: si,
|
|
3326
|
-
videoPlayer: Li,
|
|
3327
|
-
embed: xi,
|
|
3328
|
-
header: di,
|
|
3329
|
-
answer: Se,
|
|
3330
|
-
terms: M2,
|
|
3331
|
-
parties: H2,
|
|
3332
|
-
custom: Xe,
|
|
3333
|
-
// legacy
|
|
3334
|
-
presentation: L2,
|
|
3335
|
-
estimatedTimeCompleted: z2,
|
|
3336
|
-
estimatedWorkStartAndEndAtText: R2,
|
|
3337
|
-
extraWorkConstructionPricingList: W2,
|
|
3338
|
-
extraWorkTimeImpactText: j2,
|
|
3339
|
-
notBinding: Q2
|
|
3340
|
-
}, O = {
|
|
3341
|
-
coverBlock: oi,
|
|
3342
|
-
header: pi,
|
|
3431
|
+
], O = {
|
|
3432
|
+
titleAndText2: ii,
|
|
3433
|
+
attachments2: k2,
|
|
3434
|
+
pdf: Ve,
|
|
3343
3435
|
packageGroup: gi,
|
|
3344
|
-
|
|
3436
|
+
multiGroupPricing: D2,
|
|
3437
|
+
coverBlock: oi,
|
|
3345
3438
|
videoPlayer: $i,
|
|
3346
|
-
|
|
3347
|
-
|
|
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,
|
|
3455
|
+
packageGroup: Ci,
|
|
3456
|
+
embed: bi,
|
|
3457
|
+
videoPlayer: Si,
|
|
3458
|
+
custom: it
|
|
3459
|
+
}, Ti = {
|
|
3348
3460
|
name: "AddBlock",
|
|
3349
3461
|
props: {
|
|
3350
3462
|
set: {
|
|
@@ -3358,28 +3470,28 @@ const wi = ({ language: i = "en" } = {}) => [
|
|
|
3358
3470
|
},
|
|
3359
3471
|
render() {
|
|
3360
3472
|
return this.$scopedSlots.default({
|
|
3361
|
-
addBlock: (i) =>
|
|
3473
|
+
addBlock: (i) => Me({
|
|
3362
3474
|
...i,
|
|
3363
3475
|
set: this.set,
|
|
3364
|
-
tplGenerators:
|
|
3476
|
+
tplGenerators: O,
|
|
3365
3477
|
includeMockData: this.includeMockData,
|
|
3366
3478
|
emit: (...e) => this.$emit(...e)
|
|
3367
3479
|
}),
|
|
3368
|
-
getBlockPayload: (i) =>
|
|
3480
|
+
getBlockPayload: (i) => Ie(i, this.set, O, this.includeMockdata)
|
|
3369
3481
|
});
|
|
3370
3482
|
}
|
|
3371
|
-
},
|
|
3372
|
-
var
|
|
3373
|
-
|
|
3374
|
-
Vi,
|
|
3483
|
+
}, Di = null, Vi = null;
|
|
3484
|
+
var Bi = /* @__PURE__ */ c(
|
|
3485
|
+
Ti,
|
|
3375
3486
|
Di,
|
|
3487
|
+
Vi,
|
|
3376
3488
|
!1,
|
|
3377
3489
|
null,
|
|
3378
3490
|
null,
|
|
3379
3491
|
null,
|
|
3380
3492
|
null
|
|
3381
3493
|
);
|
|
3382
|
-
const
|
|
3494
|
+
const se = Bi.exports;
|
|
3383
3495
|
const Mi = {
|
|
3384
3496
|
name: "Drawer",
|
|
3385
3497
|
props: {
|
|
@@ -3423,7 +3535,7 @@ const Mi = {
|
|
|
3423
3535
|
}
|
|
3424
3536
|
}
|
|
3425
3537
|
};
|
|
3426
|
-
var
|
|
3538
|
+
var Ii = function() {
|
|
3427
3539
|
var e = this, t = e._self._c;
|
|
3428
3540
|
return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
|
|
3429
3541
|
zIndex: e.zIndex
|
|
@@ -3439,18 +3551,18 @@ var Bi = function() {
|
|
|
3439
3551
|
boxShadow: e.boxShadow,
|
|
3440
3552
|
...e.contentStyle
|
|
3441
3553
|
} }, [e._t("default")], 2)]) : e._e()])], 1);
|
|
3442
|
-
},
|
|
3554
|
+
}, Fi = [], Hi = /* @__PURE__ */ c(
|
|
3443
3555
|
Mi,
|
|
3444
|
-
Bi,
|
|
3445
3556
|
Ii,
|
|
3557
|
+
Fi,
|
|
3446
3558
|
!1,
|
|
3447
3559
|
null,
|
|
3448
3560
|
"3cb13e4e",
|
|
3449
3561
|
null,
|
|
3450
3562
|
null
|
|
3451
3563
|
);
|
|
3452
|
-
const
|
|
3453
|
-
const
|
|
3564
|
+
const oe = Hi.exports;
|
|
3565
|
+
const Ai = {
|
|
3454
3566
|
name: "DocumentSend",
|
|
3455
3567
|
i18nOptions: {
|
|
3456
3568
|
namespaces: "documentSend",
|
|
@@ -3474,19 +3586,19 @@ const Hi = {
|
|
|
3474
3586
|
}
|
|
3475
3587
|
},
|
|
3476
3588
|
components: {
|
|
3477
|
-
AddBlock:
|
|
3478
|
-
Drawer:
|
|
3479
|
-
SendForm:
|
|
3480
|
-
CCheckbox:
|
|
3481
|
-
BaseIcon:
|
|
3482
|
-
CButton:
|
|
3589
|
+
AddBlock: se,
|
|
3590
|
+
Drawer: oe,
|
|
3591
|
+
SendForm: st,
|
|
3592
|
+
CCheckbox: Fe,
|
|
3593
|
+
BaseIcon: He,
|
|
3594
|
+
CButton: Ae
|
|
3483
3595
|
},
|
|
3484
3596
|
mixins: [
|
|
3485
|
-
|
|
3597
|
+
$([], {
|
|
3486
3598
|
useEmit: !1,
|
|
3487
3599
|
setFnName: "setFormValue"
|
|
3488
3600
|
}),
|
|
3489
|
-
|
|
3601
|
+
L
|
|
3490
3602
|
],
|
|
3491
3603
|
props: {
|
|
3492
3604
|
setFormValue: {
|
|
@@ -3504,7 +3616,6 @@ const Hi = {
|
|
|
3504
3616
|
},
|
|
3505
3617
|
data() {
|
|
3506
3618
|
return {
|
|
3507
|
-
localIsPosting: !1,
|
|
3508
3619
|
isOpen: !1,
|
|
3509
3620
|
saveTemplate: !1,
|
|
3510
3621
|
saveTemplateTooltip: {
|
|
@@ -3524,7 +3635,7 @@ const Hi = {
|
|
|
3524
3635
|
return !!(this.viewSettings && this.viewSettings.isPublicForm);
|
|
3525
3636
|
},
|
|
3526
3637
|
hasAnswerBlock() {
|
|
3527
|
-
return (
|
|
3638
|
+
return (u(this._document, "template.views.read.nodes") || []).some((e) => e.itemType === "answer");
|
|
3528
3639
|
}
|
|
3529
3640
|
},
|
|
3530
3641
|
watch: {
|
|
@@ -3540,8 +3651,8 @@ const Hi = {
|
|
|
3540
3651
|
!this.isPublicForm && ((i = window.App) != null && i.$fab) && (window.App.$fab.show = !0);
|
|
3541
3652
|
},
|
|
3542
3653
|
methods: {
|
|
3543
|
-
...
|
|
3544
|
-
createTemplate:
|
|
3654
|
+
...y({
|
|
3655
|
+
createTemplate: m.DO_CREATE_TEMPLATE
|
|
3545
3656
|
}),
|
|
3546
3657
|
open() {
|
|
3547
3658
|
this.isOpen = !0;
|
|
@@ -3551,7 +3662,7 @@ const Hi = {
|
|
|
3551
3662
|
return;
|
|
3552
3663
|
const i = {
|
|
3553
3664
|
...this._document.copyTemplateDocDefault(),
|
|
3554
|
-
name:
|
|
3665
|
+
name: u(this._document, "name") || this.$t("_common:untitled"),
|
|
3555
3666
|
_id: void 0,
|
|
3556
3667
|
id: void 0,
|
|
3557
3668
|
isVisible: !0
|
|
@@ -3563,7 +3674,7 @@ const Hi = {
|
|
|
3563
3674
|
}
|
|
3564
3675
|
}
|
|
3565
3676
|
};
|
|
3566
|
-
var
|
|
3677
|
+
var Pi = function() {
|
|
3567
3678
|
var e = this, t = e._self._c;
|
|
3568
3679
|
return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
|
|
3569
3680
|
e.isOpen = a;
|
|
@@ -3575,20 +3686,20 @@ var Ai = function() {
|
|
|
3575
3686
|
return [t("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small" }, on: { click: function(n) {
|
|
3576
3687
|
return a({ sectionKey: "answer" });
|
|
3577
3688
|
} } }, [e._v(" " + e._s(e.$t("signMissingAdd")) + " ")])];
|
|
3578
|
-
} }], null, !1, 2898075047) })], 1)]), e.isPublicForm ? t("CButton", { staticStyle: { height: "48px" }, attrs: { slot: "send",
|
|
3689
|
+
} }], 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) {
|
|
3579
3690
|
e.saveTemplate = a;
|
|
3580
3691
|
}, 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();
|
|
3581
|
-
},
|
|
3582
|
-
Hi,
|
|
3692
|
+
}, Ei = [], zi = /* @__PURE__ */ c(
|
|
3583
3693
|
Ai,
|
|
3584
3694
|
Pi,
|
|
3695
|
+
Ei,
|
|
3585
3696
|
!1,
|
|
3586
3697
|
null,
|
|
3587
|
-
"
|
|
3698
|
+
"057840fe",
|
|
3588
3699
|
null,
|
|
3589
3700
|
null
|
|
3590
3701
|
);
|
|
3591
|
-
const
|
|
3702
|
+
const Zi = zi.exports, Oi = {
|
|
3592
3703
|
name: "Draggable",
|
|
3593
3704
|
data() {
|
|
3594
3705
|
return {
|
|
@@ -3620,21 +3731,21 @@ const zi = Ei.exports, Zi = {
|
|
|
3620
3731
|
dragMousedown: this.onDragMouseDown
|
|
3621
3732
|
});
|
|
3622
3733
|
}
|
|
3623
|
-
},
|
|
3624
|
-
var
|
|
3625
|
-
Zi,
|
|
3734
|
+
}, Ri = null, Gi = null;
|
|
3735
|
+
var Ui = /* @__PURE__ */ c(
|
|
3626
3736
|
Oi,
|
|
3627
3737
|
Ri,
|
|
3738
|
+
Gi,
|
|
3628
3739
|
!1,
|
|
3629
3740
|
null,
|
|
3630
3741
|
null,
|
|
3631
3742
|
null,
|
|
3632
3743
|
null
|
|
3633
3744
|
);
|
|
3634
|
-
const
|
|
3635
|
-
const
|
|
3745
|
+
const Wi = Ui.exports;
|
|
3746
|
+
const qi = {
|
|
3636
3747
|
components: {
|
|
3637
|
-
Draggable:
|
|
3748
|
+
Draggable: Wi
|
|
3638
3749
|
},
|
|
3639
3750
|
props: {
|
|
3640
3751
|
offset: {
|
|
@@ -3647,7 +3758,7 @@ const Wi = {
|
|
|
3647
3758
|
}
|
|
3648
3759
|
}
|
|
3649
3760
|
};
|
|
3650
|
-
var
|
|
3761
|
+
var Ni = function() {
|
|
3651
3762
|
var e = this, t = e._self._c;
|
|
3652
3763
|
return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
|
|
3653
3764
|
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: {
|
|
@@ -3657,29 +3768,29 @@ var qi = function() {
|
|
|
3657
3768
|
return e.$emit("close");
|
|
3658
3769
|
} } }), 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)])];
|
|
3659
3770
|
} }], null, !0) })], 1);
|
|
3660
|
-
},
|
|
3661
|
-
Wi,
|
|
3771
|
+
}, ji = [], Ki = /* @__PURE__ */ c(
|
|
3662
3772
|
qi,
|
|
3663
3773
|
Ni,
|
|
3774
|
+
ji,
|
|
3664
3775
|
!1,
|
|
3665
3776
|
null,
|
|
3666
3777
|
"9b75010b",
|
|
3667
3778
|
null,
|
|
3668
3779
|
null
|
|
3669
3780
|
);
|
|
3670
|
-
const
|
|
3671
|
-
const
|
|
3781
|
+
const le = Ki.exports;
|
|
3782
|
+
const Yi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Yi), Qi = {
|
|
3672
3783
|
i18nOptions: {
|
|
3673
3784
|
namespaces: "common",
|
|
3674
3785
|
keyPrefix: "designLabels"
|
|
3675
3786
|
},
|
|
3676
3787
|
name: "Design",
|
|
3677
3788
|
components: {
|
|
3678
|
-
FormInputRow:
|
|
3679
|
-
DragWindow:
|
|
3789
|
+
FormInputRow: X,
|
|
3790
|
+
DragWindow: le
|
|
3680
3791
|
},
|
|
3681
3792
|
mixins: [
|
|
3682
|
-
|
|
3793
|
+
$(
|
|
3683
3794
|
["css"],
|
|
3684
3795
|
{ useEmit: !1, setFnName: "set" }
|
|
3685
3796
|
)
|
|
@@ -3748,7 +3859,7 @@ const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
|
|
|
3748
3859
|
// Dynamic depending on font family
|
|
3749
3860
|
definitionOptions: {
|
|
3750
3861
|
fontFamily: ({ key: i, value: e }) => {
|
|
3751
|
-
const t =
|
|
3862
|
+
const t = u(this.css, `${this.activeItem.selector}.fontWeight`) || u(this.activeItem, "style.fontWeight") || "400";
|
|
3752
3863
|
return {
|
|
3753
3864
|
label: this.$t("font"),
|
|
3754
3865
|
inputs: [
|
|
@@ -3765,7 +3876,7 @@ const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
|
|
|
3765
3876
|
weight: n,
|
|
3766
3877
|
options: s = []
|
|
3767
3878
|
}) => {
|
|
3768
|
-
this.update(i, a),
|
|
3879
|
+
this.update(i, a), Ye(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
|
|
3769
3880
|
}
|
|
3770
3881
|
}
|
|
3771
3882
|
]
|
|
@@ -4200,7 +4311,7 @@ const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
|
|
|
4200
4311
|
activeItemOptions() {
|
|
4201
4312
|
if (!this.activeItem)
|
|
4202
4313
|
return [];
|
|
4203
|
-
const { selector: i, category: e, style: t = {} } = this.activeItem, a =
|
|
4314
|
+
const { selector: i, category: e, style: t = {} } = this.activeItem, a = u(this.css, i) || {}, n = (s) => a[s] || t[s];
|
|
4204
4315
|
return this[e].map(({ option: s, key: o }, l) => {
|
|
4205
4316
|
const r = this.definitionOptions[s], p = Array.isArray(o) ? o.map((C) => ({ key: C, value: n(C) })) : { key: o, value: n(o) };
|
|
4206
4317
|
return r(p, l);
|
|
@@ -4209,8 +4320,8 @@ const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
|
|
|
4209
4320
|
},
|
|
4210
4321
|
watch: {
|
|
4211
4322
|
async activeItem(i) {
|
|
4212
|
-
const e =
|
|
4213
|
-
e && (this.fontWeightOptions = await
|
|
4323
|
+
const e = u(i, "style.fontFamily");
|
|
4324
|
+
e && (this.fontWeightOptions = await Qe(e));
|
|
4214
4325
|
}
|
|
4215
4326
|
},
|
|
4216
4327
|
methods: {
|
|
@@ -4222,7 +4333,7 @@ const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
|
|
|
4222
4333
|
}
|
|
4223
4334
|
}
|
|
4224
4335
|
};
|
|
4225
|
-
var
|
|
4336
|
+
var Ji = function() {
|
|
4226
4337
|
var e = this, t = e._self._c;
|
|
4227
4338
|
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) {
|
|
4228
4339
|
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
|
|
@@ -4241,18 +4352,18 @@ var Qi = function() {
|
|
|
4241
4352
|
})], 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) {
|
|
4242
4353
|
return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
|
|
4243
4354
|
}), 1) : e._e()], 1);
|
|
4244
|
-
},
|
|
4245
|
-
Yi,
|
|
4355
|
+
}, Xi = [], ea = /* @__PURE__ */ c(
|
|
4246
4356
|
Qi,
|
|
4247
4357
|
Ji,
|
|
4358
|
+
Xi,
|
|
4248
4359
|
!1,
|
|
4249
4360
|
null,
|
|
4250
4361
|
"930a4202",
|
|
4251
4362
|
null,
|
|
4252
4363
|
null
|
|
4253
4364
|
);
|
|
4254
|
-
const
|
|
4255
|
-
const
|
|
4365
|
+
const ta = ea.exports;
|
|
4366
|
+
const ia = {
|
|
4256
4367
|
name: "FieldsModal",
|
|
4257
4368
|
i18nOptions: {
|
|
4258
4369
|
namespaces: "FieldsModal",
|
|
@@ -4286,7 +4397,7 @@ const ta = {
|
|
|
4286
4397
|
}
|
|
4287
4398
|
},
|
|
4288
4399
|
components: {
|
|
4289
|
-
CField:
|
|
4400
|
+
CField: J
|
|
4290
4401
|
},
|
|
4291
4402
|
props: {
|
|
4292
4403
|
document: {
|
|
@@ -4317,12 +4428,12 @@ const ta = {
|
|
|
4317
4428
|
validations: {
|
|
4318
4429
|
form: {
|
|
4319
4430
|
label: {
|
|
4320
|
-
required:
|
|
4431
|
+
required: B.required,
|
|
4321
4432
|
isUniqueLabel(i) {
|
|
4322
4433
|
return this.fields.reduce((t, { label: a }) => a === i ? !1 : t, !0);
|
|
4323
4434
|
}
|
|
4324
4435
|
},
|
|
4325
|
-
value: { required:
|
|
4436
|
+
value: { required: B.required }
|
|
4326
4437
|
}
|
|
4327
4438
|
},
|
|
4328
4439
|
computed: {
|
|
@@ -4342,7 +4453,7 @@ const ta = {
|
|
|
4342
4453
|
},
|
|
4343
4454
|
created() {
|
|
4344
4455
|
if (this.existingFieldId) {
|
|
4345
|
-
const i =
|
|
4456
|
+
const i = u(this.document, `fields.${this.existingFieldId}`);
|
|
4346
4457
|
i && (this.form = { ...this.form, ...i });
|
|
4347
4458
|
}
|
|
4348
4459
|
},
|
|
@@ -4362,12 +4473,12 @@ const ta = {
|
|
|
4362
4473
|
remove() {
|
|
4363
4474
|
if (!this.existingFieldId)
|
|
4364
4475
|
return;
|
|
4365
|
-
const i =
|
|
4476
|
+
const i = pt(this.document.fields, [this.existingFieldId]);
|
|
4366
4477
|
this.set({ key: "data.fields", value: i }), this.$emit("close");
|
|
4367
4478
|
}
|
|
4368
4479
|
}
|
|
4369
4480
|
};
|
|
4370
|
-
var
|
|
4481
|
+
var aa = function() {
|
|
4371
4482
|
var e = this, t = e._self._c;
|
|
4372
4483
|
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) {
|
|
4373
4484
|
return a.preventDefault(), e.submit.apply(null, arguments);
|
|
@@ -4378,18 +4489,18 @@ var ia = function() {
|
|
|
4378
4489
|
}, 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) {
|
|
4379
4490
|
e.$set(e.form, "value", a);
|
|
4380
4491
|
}, 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)]);
|
|
4381
|
-
},
|
|
4382
|
-
ta,
|
|
4492
|
+
}, na = [], sa = /* @__PURE__ */ c(
|
|
4383
4493
|
ia,
|
|
4384
4494
|
aa,
|
|
4495
|
+
na,
|
|
4385
4496
|
!1,
|
|
4386
4497
|
null,
|
|
4387
4498
|
"5cc44007",
|
|
4388
4499
|
null,
|
|
4389
4500
|
null
|
|
4390
4501
|
);
|
|
4391
|
-
const
|
|
4392
|
-
const
|
|
4502
|
+
const oa = sa.exports;
|
|
4503
|
+
const la = {
|
|
4393
4504
|
i18nOptions: {
|
|
4394
4505
|
namespaces: "DocumentFormFields",
|
|
4395
4506
|
messages: {
|
|
@@ -4413,11 +4524,11 @@ const oa = {
|
|
|
4413
4524
|
},
|
|
4414
4525
|
name: "DocumentFormFields",
|
|
4415
4526
|
components: {
|
|
4416
|
-
SmartList:
|
|
4417
|
-
CAccordion:
|
|
4418
|
-
CField:
|
|
4527
|
+
SmartList: dt,
|
|
4528
|
+
CAccordion: je,
|
|
4529
|
+
CField: J
|
|
4419
4530
|
},
|
|
4420
|
-
mixins: [
|
|
4531
|
+
mixins: [$()],
|
|
4421
4532
|
props: {
|
|
4422
4533
|
set: {
|
|
4423
4534
|
type: Function,
|
|
@@ -4474,7 +4585,7 @@ const oa = {
|
|
|
4474
4585
|
immediate: !0,
|
|
4475
4586
|
async handler(i) {
|
|
4476
4587
|
var e, t;
|
|
4477
|
-
if (this.isEditingTemplate) {
|
|
4588
|
+
if (this.isEditingTemplate && i) {
|
|
4478
4589
|
const { data: a } = await _.getFields(i);
|
|
4479
4590
|
this.updateValue("data.fields", {
|
|
4480
4591
|
// crmFields added first in order to not override same service values
|
|
@@ -4492,7 +4603,7 @@ const oa = {
|
|
|
4492
4603
|
},
|
|
4493
4604
|
openFieldModal({ existingFieldId: i }) {
|
|
4494
4605
|
this.$modal.show(
|
|
4495
|
-
|
|
4606
|
+
oa,
|
|
4496
4607
|
{
|
|
4497
4608
|
document: this._document,
|
|
4498
4609
|
set: this.set,
|
|
@@ -4511,7 +4622,7 @@ const oa = {
|
|
|
4511
4622
|
);
|
|
4512
4623
|
},
|
|
4513
4624
|
onCopyField(i) {
|
|
4514
|
-
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() =>
|
|
4625
|
+
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => j("info", this.$t("_common:copyMessage"))).catch((e) => S(e));
|
|
4515
4626
|
},
|
|
4516
4627
|
filterMethod(i, e) {
|
|
4517
4628
|
return e.filter((t) => t.label.toLowerCase().includes(i.toLowerCase()));
|
|
@@ -4522,9 +4633,9 @@ const oa = {
|
|
|
4522
4633
|
}
|
|
4523
4634
|
}
|
|
4524
4635
|
};
|
|
4525
|
-
var
|
|
4636
|
+
var ra = function() {
|
|
4526
4637
|
var e = this, t = e._self._c;
|
|
4527
|
-
return t("div", {
|
|
4638
|
+
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) {
|
|
4528
4639
|
e.query = a;
|
|
4529
4640
|
}, expression: "query" } }), e.query ? t("div", { staticStyle: { "margin-top": "15px", "padding-top": "15px", "border-top": "1px solid hsl(0, 0%, 88%)" } }, [t("SmartList", { attrs: { items: e.options, "filter-method": e.filterMethod, query: e.query }, scopedSlots: e._u([{ key: "default", fn: function({ items: a }) {
|
|
4530
4641
|
return t("div", {}, [a.length ? e._l(a, function(n, s) {
|
|
@@ -4567,18 +4678,18 @@ var la = function() {
|
|
|
4567
4678
|
} } })], 1)], 1)]);
|
|
4568
4679
|
}) : 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)]);
|
|
4569
4680
|
})], 2)], 1);
|
|
4570
|
-
},
|
|
4571
|
-
oa,
|
|
4681
|
+
}, ca = [], da = /* @__PURE__ */ c(
|
|
4572
4682
|
la,
|
|
4573
4683
|
ra,
|
|
4684
|
+
ca,
|
|
4574
4685
|
!1,
|
|
4575
4686
|
null,
|
|
4576
|
-
"
|
|
4687
|
+
"916766d5",
|
|
4577
4688
|
null,
|
|
4578
4689
|
null
|
|
4579
4690
|
);
|
|
4580
|
-
const
|
|
4581
|
-
const
|
|
4691
|
+
const pa = da.exports;
|
|
4692
|
+
const ua = {
|
|
4582
4693
|
i18nOptions: {
|
|
4583
4694
|
messages: {
|
|
4584
4695
|
en: {
|
|
@@ -4621,10 +4732,10 @@ const pa = {
|
|
|
4621
4732
|
},
|
|
4622
4733
|
name: "ExtensionTab",
|
|
4623
4734
|
components: {
|
|
4624
|
-
draggable:
|
|
4625
|
-
Spinner:
|
|
4735
|
+
draggable: ut,
|
|
4736
|
+
Spinner: Pe
|
|
4626
4737
|
},
|
|
4627
|
-
mixins: [
|
|
4738
|
+
mixins: [$([
|
|
4628
4739
|
"externalReferences",
|
|
4629
4740
|
"clients",
|
|
4630
4741
|
"articles"
|
|
@@ -4678,7 +4789,7 @@ const pa = {
|
|
|
4678
4789
|
}
|
|
4679
4790
|
},
|
|
4680
4791
|
methods: {
|
|
4681
|
-
priceFormat:
|
|
4792
|
+
priceFormat: q,
|
|
4682
4793
|
async _search(i) {
|
|
4683
4794
|
try {
|
|
4684
4795
|
this.isSearching = !0;
|
|
@@ -4697,7 +4808,7 @@ const pa = {
|
|
|
4697
4808
|
this.isSearching = !1;
|
|
4698
4809
|
}
|
|
4699
4810
|
},
|
|
4700
|
-
search:
|
|
4811
|
+
search: M(async function(e) {
|
|
4701
4812
|
await this._search(e);
|
|
4702
4813
|
}, 750),
|
|
4703
4814
|
useSearchResult(i) {
|
|
@@ -4739,7 +4850,7 @@ const pa = {
|
|
|
4739
4850
|
const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await _.suggestClients(i, { type: e, typeId: t });
|
|
4740
4851
|
if (Array.isArray(a) && a.length) {
|
|
4741
4852
|
const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
|
|
4742
|
-
...
|
|
4853
|
+
...Ee(),
|
|
4743
4854
|
...s && { answerMethod: s },
|
|
4744
4855
|
...l
|
|
4745
4856
|
}));
|
|
@@ -4747,7 +4858,7 @@ const pa = {
|
|
|
4747
4858
|
}
|
|
4748
4859
|
},
|
|
4749
4860
|
cloneArticle(i) {
|
|
4750
|
-
return
|
|
4861
|
+
return x({
|
|
4751
4862
|
...i,
|
|
4752
4863
|
_uniqueId: void 0
|
|
4753
4864
|
});
|
|
@@ -4757,7 +4868,7 @@ const pa = {
|
|
|
4757
4868
|
const [e] = ((n = (a = this._document) == null ? void 0 : a.packageGroups) == null ? void 0 : n.packages) || [];
|
|
4758
4869
|
if (!(e != null && e.packageId))
|
|
4759
4870
|
return;
|
|
4760
|
-
const t =
|
|
4871
|
+
const t = x({
|
|
4761
4872
|
...i,
|
|
4762
4873
|
_uniqueId: void 0,
|
|
4763
4874
|
packageId: e.packageId
|
|
@@ -4769,7 +4880,7 @@ const pa = {
|
|
|
4769
4880
|
}
|
|
4770
4881
|
}
|
|
4771
4882
|
};
|
|
4772
|
-
var
|
|
4883
|
+
var ma = function() {
|
|
4773
4884
|
var e = this, t = e._self._c;
|
|
4774
4885
|
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) {
|
|
4775
4886
|
return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
|
|
@@ -4800,18 +4911,18 @@ var ua = function() {
|
|
|
4800
4911
|
return e.addArticle(a);
|
|
4801
4912
|
} } }, [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)]);
|
|
4802
4913
|
}), 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);
|
|
4803
|
-
},
|
|
4804
|
-
pa,
|
|
4914
|
+
}, ha = [], fa = /* @__PURE__ */ c(
|
|
4805
4915
|
ua,
|
|
4806
4916
|
ma,
|
|
4917
|
+
ha,
|
|
4807
4918
|
!1,
|
|
4808
4919
|
null,
|
|
4809
4920
|
"b775e9f9",
|
|
4810
4921
|
null,
|
|
4811
4922
|
null
|
|
4812
4923
|
);
|
|
4813
|
-
const
|
|
4814
|
-
const
|
|
4924
|
+
const ga = fa.exports;
|
|
4925
|
+
const Ca = {
|
|
4815
4926
|
i18nOptions: {
|
|
4816
4927
|
namespaces: "DocSettings",
|
|
4817
4928
|
messages: {
|
|
@@ -4899,8 +5010,8 @@ const ga = {
|
|
|
4899
5010
|
},
|
|
4900
5011
|
name: "DocumentGeneralSettings",
|
|
4901
5012
|
components: {
|
|
4902
|
-
FormInputRow:
|
|
4903
|
-
DragWindow:
|
|
5013
|
+
FormInputRow: X,
|
|
5014
|
+
DragWindow: le
|
|
4904
5015
|
},
|
|
4905
5016
|
props: {
|
|
4906
5017
|
offset: {
|
|
@@ -4908,7 +5019,7 @@ const ga = {
|
|
|
4908
5019
|
required: !0
|
|
4909
5020
|
}
|
|
4910
5021
|
},
|
|
4911
|
-
mixins: [
|
|
5022
|
+
mixins: [$([
|
|
4912
5023
|
"tags",
|
|
4913
5024
|
"series",
|
|
4914
5025
|
"senderId",
|
|
@@ -4939,7 +5050,7 @@ const ga = {
|
|
|
4939
5050
|
vatTypes() {
|
|
4940
5051
|
var e;
|
|
4941
5052
|
const i = ["vat"];
|
|
4942
|
-
return ((e =
|
|
5053
|
+
return ((e = ze[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
|
|
4943
5054
|
},
|
|
4944
5055
|
options() {
|
|
4945
5056
|
return [
|
|
@@ -4965,7 +5076,7 @@ const ga = {
|
|
|
4965
5076
|
component: "select",
|
|
4966
5077
|
props: {
|
|
4967
5078
|
value: this.language,
|
|
4968
|
-
options:
|
|
5079
|
+
options: Ze.map((i) => ({ value: i, label: this.$t(`iso:language.${i}`) })).sort((i, e) => i.label.localeCompare(e.label))
|
|
4969
5080
|
},
|
|
4970
5081
|
onInput: (i) => this.update("language", i)
|
|
4971
5082
|
}
|
|
@@ -5098,8 +5209,8 @@ const ga = {
|
|
|
5098
5209
|
this.isPublicForm || await this.loadUsers();
|
|
5099
5210
|
},
|
|
5100
5211
|
methods: {
|
|
5101
|
-
...
|
|
5102
|
-
loadUsers:
|
|
5212
|
+
...y({
|
|
5213
|
+
loadUsers: m.LOAD_COMPANY_USERS
|
|
5103
5214
|
}),
|
|
5104
5215
|
update(i, e) {
|
|
5105
5216
|
this[i] = e;
|
|
@@ -5116,222 +5227,26 @@ const ga = {
|
|
|
5116
5227
|
}
|
|
5117
5228
|
}
|
|
5118
5229
|
};
|
|
5119
|
-
var
|
|
5230
|
+
var va = function() {
|
|
5120
5231
|
var e = this, t = e._self._c;
|
|
5121
|
-
return t("div", {
|
|
5232
|
+
return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
|
|
5122
5233
|
return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
|
|
5123
5234
|
}), e.showDragWindow ? t("DragWindow", { attrs: { offset: e.offset, title: e.$t("pricing.title") }, on: { close: function(a) {
|
|
5124
5235
|
e.showDragWindow = !1;
|
|
5125
5236
|
} } }, [e._l(e.priceOptions, function(a, n) {
|
|
5126
5237
|
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 } })];
|
|
5127
5238
|
})], 2) : e._e()], 2);
|
|
5128
|
-
},
|
|
5129
|
-
ga,
|
|
5239
|
+
}, ya = [], xa = /* @__PURE__ */ c(
|
|
5130
5240
|
Ca,
|
|
5131
5241
|
va,
|
|
5242
|
+
ya,
|
|
5132
5243
|
!1,
|
|
5133
5244
|
null,
|
|
5134
|
-
"
|
|
5245
|
+
"eec61e30",
|
|
5135
5246
|
null,
|
|
5136
5247
|
null
|
|
5137
5248
|
);
|
|
5138
|
-
const
|
|
5139
|
-
const wa = {
|
|
5140
|
-
name: "DocumentGuide",
|
|
5141
|
-
i18nOptions: {
|
|
5142
|
-
namespaces: "documentGuide",
|
|
5143
|
-
messages: {
|
|
5144
|
-
en: {
|
|
5145
|
-
title: "Quick tour",
|
|
5146
|
-
steps: {
|
|
5147
|
-
addBlocks: "Add document blocks from the left sidebar.",
|
|
5148
|
-
textFormatting: "Select some text and formatting options will appear.",
|
|
5149
|
-
editBlocks: `Adjust a block's appearance by clicking on the <span class="dg-button-icon appearance"></span> button.`,
|
|
5150
|
-
changeProduct: `Change a product's quantity by clicking on the <span class="dg-button-icon cog"></span> button.`,
|
|
5151
|
-
send: `Once you're done, hit <span class="dg-button-text">Send</span>`
|
|
5152
|
-
}
|
|
5153
|
-
},
|
|
5154
|
-
sv: {
|
|
5155
|
-
title: "Snabbguide",
|
|
5156
|
-
steps: {
|
|
5157
|
-
addBlocks: "Lägg till dokumentblock ifrån vänstra sidomenyn.",
|
|
5158
|
-
textFormatting: "Markera en bit text för att få upp formateringsmenyn.",
|
|
5159
|
-
editBlocks: 'Ändra utseendet på ett block genom att klicka på <span class="dg-button-icon appearance"></span> knappen.',
|
|
5160
|
-
changeProduct: 'Ändra en varas antal genom att klicka på <span class="dg-button-icon cog"></span> knappen.',
|
|
5161
|
-
send: 'När du är klar, klicka på <span class="dg-button-text">Skicka</span>'
|
|
5162
|
-
}
|
|
5163
|
-
}
|
|
5164
|
-
}
|
|
5165
|
-
},
|
|
5166
|
-
data() {
|
|
5167
|
-
return {
|
|
5168
|
-
step: 0,
|
|
5169
|
-
steps: [{
|
|
5170
|
-
title: this.$t("steps.addBlocks"),
|
|
5171
|
-
img: c1
|
|
5172
|
-
}, {
|
|
5173
|
-
title: this.$t("steps.textFormatting"),
|
|
5174
|
-
img: d1
|
|
5175
|
-
}, {
|
|
5176
|
-
title: this.$t("steps.editBlocks"),
|
|
5177
|
-
img: p1
|
|
5178
|
-
}, {
|
|
5179
|
-
title: this.$t("steps.changeProduct"),
|
|
5180
|
-
img: u1
|
|
5181
|
-
}, {
|
|
5182
|
-
title: this.$t("steps.send"),
|
|
5183
|
-
img: m1
|
|
5184
|
-
}]
|
|
5185
|
-
};
|
|
5186
|
-
}
|
|
5187
|
-
};
|
|
5188
|
-
var _a = function() {
|
|
5189
|
-
var e = this, t = e._self._c;
|
|
5190
|
-
return t("div", {
|
|
5191
|
-
staticStyle: {
|
|
5192
|
-
position: "fixed",
|
|
5193
|
-
left: "0",
|
|
5194
|
-
top: "0",
|
|
5195
|
-
right: "0",
|
|
5196
|
-
bottom: "0",
|
|
5197
|
-
"background-color": "hsla(0, 0%, 0%, 0.2)",
|
|
5198
|
-
padding: "calc(4 * var(--rem)) 0",
|
|
5199
|
-
display: "grid",
|
|
5200
|
-
"place-items": "center",
|
|
5201
|
-
"z-index": "9999"
|
|
5202
|
-
}
|
|
5203
|
-
}, [t("div", {
|
|
5204
|
-
staticStyle: {
|
|
5205
|
-
"background-color": "hsl(212, 90%, 15%)",
|
|
5206
|
-
padding: "calc(3 * var(--rem)) calc(2.5 * var(--rem)) calc(2.5 * var(--rem)) calc(2.5 * var(--rem))",
|
|
5207
|
-
"border-radius": "8px",
|
|
5208
|
-
width: "520px",
|
|
5209
|
-
color: "hsla(0, 0%, 100%, 0.8)",
|
|
5210
|
-
"max-width": "95%",
|
|
5211
|
-
"font-size": "16px",
|
|
5212
|
-
position: "relative"
|
|
5213
|
-
}
|
|
5214
|
-
}, [t("CButton", {
|
|
5215
|
-
staticStyle: {
|
|
5216
|
-
position: "absolute",
|
|
5217
|
-
right: "calc(1 * var(--rem))",
|
|
5218
|
-
top: "calc(1 * var(--rem))"
|
|
5219
|
-
},
|
|
5220
|
-
attrs: {
|
|
5221
|
-
size: "small",
|
|
5222
|
-
type: "none",
|
|
5223
|
-
pattern: "tertiary",
|
|
5224
|
-
circle: "",
|
|
5225
|
-
icon: "x"
|
|
5226
|
-
},
|
|
5227
|
-
on: {
|
|
5228
|
-
click: function(a) {
|
|
5229
|
-
return e.$emit("close");
|
|
5230
|
-
}
|
|
5231
|
-
}
|
|
5232
|
-
}), t("div", {
|
|
5233
|
-
staticStyle: {
|
|
5234
|
-
"padding-left": "calc(1 * var(--rem))"
|
|
5235
|
-
}
|
|
5236
|
-
}, [t("div", {
|
|
5237
|
-
staticStyle: {
|
|
5238
|
-
"text-transform": "uppercase",
|
|
5239
|
-
"font-size": "0.75em",
|
|
5240
|
-
"padding-bottom": "0.7em",
|
|
5241
|
-
color: "hsl(321, 100%, 78%)"
|
|
5242
|
-
}
|
|
5243
|
-
}, [e._v(" " + e._s(e.$t("title")) + " ")]), t("div", {
|
|
5244
|
-
staticStyle: {
|
|
5245
|
-
"font-size": "1.5em",
|
|
5246
|
-
"padding-bottom": "1em",
|
|
5247
|
-
"line-height": "1.4",
|
|
5248
|
-
"font-weight": "500",
|
|
5249
|
-
color: "white",
|
|
5250
|
-
"min-height": "100px"
|
|
5251
|
-
}
|
|
5252
|
-
}, [e._v(" " + e._s(e.step + 1) + ". "), t("span", {
|
|
5253
|
-
domProps: {
|
|
5254
|
-
innerHTML: e._s(e.steps[e.step].title)
|
|
5255
|
-
}
|
|
5256
|
-
})])]), t("div", {
|
|
5257
|
-
staticStyle: {
|
|
5258
|
-
width: "100%",
|
|
5259
|
-
"background-color": "hsla(0, 0%, 100%, 0.2)",
|
|
5260
|
-
"line-height": "0",
|
|
5261
|
-
"border-radius": "8px",
|
|
5262
|
-
overflow: "hidden",
|
|
5263
|
-
position: "relative",
|
|
5264
|
-
"padding-bottom": "60%"
|
|
5265
|
-
}
|
|
5266
|
-
}, [t("transition", {
|
|
5267
|
-
attrs: {
|
|
5268
|
-
name: "slide-prev"
|
|
5269
|
-
}
|
|
5270
|
-
}, [t("img", {
|
|
5271
|
-
key: e.step,
|
|
5272
|
-
staticStyle: {
|
|
5273
|
-
position: "absolute",
|
|
5274
|
-
left: "0",
|
|
5275
|
-
top: "0",
|
|
5276
|
-
width: "100%",
|
|
5277
|
-
height: "100%"
|
|
5278
|
-
},
|
|
5279
|
-
attrs: {
|
|
5280
|
-
src: e.steps[e.step].img
|
|
5281
|
-
}
|
|
5282
|
-
})])], 1), t("div", {
|
|
5283
|
-
staticStyle: {
|
|
5284
|
-
"margin-top": "calc(3 * var(--rem))",
|
|
5285
|
-
display: "flex",
|
|
5286
|
-
"justify-content": "flex-end",
|
|
5287
|
-
position: "relative"
|
|
5288
|
-
}
|
|
5289
|
-
}, [t("div", {
|
|
5290
|
-
staticStyle: {
|
|
5291
|
-
position: "absolute",
|
|
5292
|
-
display: "grid",
|
|
5293
|
-
gap: "10px",
|
|
5294
|
-
"grid-template-columns": "repeat(5, 1fr)",
|
|
5295
|
-
top: "50%",
|
|
5296
|
-
left: "50%",
|
|
5297
|
-
transform: "translate(-50%, -50%)"
|
|
5298
|
-
}
|
|
5299
|
-
}, e._l(e.steps, function(a, n) {
|
|
5300
|
-
return t("div", {
|
|
5301
|
-
key: n,
|
|
5302
|
-
staticStyle: {
|
|
5303
|
-
width: "8px",
|
|
5304
|
-
height: "8px",
|
|
5305
|
-
"border-radius": "8px",
|
|
5306
|
-
cursor: "pointer"
|
|
5307
|
-
},
|
|
5308
|
-
style: {
|
|
5309
|
-
backgroundColor: e.step === n ? "white" : "hsla(0, 0%, 100%, 0.4)"
|
|
5310
|
-
},
|
|
5311
|
-
on: {
|
|
5312
|
-
click: function(s) {
|
|
5313
|
-
e.step = n;
|
|
5314
|
-
}
|
|
5315
|
-
}
|
|
5316
|
-
});
|
|
5317
|
-
}), 0), t("CButton", {
|
|
5318
|
-
staticClass: "pulse",
|
|
5319
|
-
staticStyle: {
|
|
5320
|
-
"border-radius": "5px",
|
|
5321
|
-
"animation-duration": "0.2s"
|
|
5322
|
-
},
|
|
5323
|
-
attrs: {
|
|
5324
|
-
type: "secondary",
|
|
5325
|
-
"icon-right": "arrow-right"
|
|
5326
|
-
},
|
|
5327
|
-
on: {
|
|
5328
|
-
click: function(a) {
|
|
5329
|
-
e.step === e.steps.length - 1 ? e.$emit("close") : e.step++;
|
|
5330
|
-
}
|
|
5331
|
-
}
|
|
5332
|
-
}, [e._v(" " + e._s(e.step === e.steps.length - 1 ? e.$t("_common:done").capitalize() : e.$t("_common:next").capitalize()) + " ")])], 1)], 1)]);
|
|
5333
|
-
}, ba = [], ka = c(wa, _a, ba, !1, null, null, null, null);
|
|
5334
|
-
const La = ka.exports, $a = {
|
|
5249
|
+
const wa = xa.exports, ba = {
|
|
5335
5250
|
name: "MenuBlockConvertPopover",
|
|
5336
5251
|
props: {
|
|
5337
5252
|
target: {
|
|
@@ -5364,28 +5279,32 @@ const La = ka.exports, $a = {
|
|
|
5364
5279
|
}
|
|
5365
5280
|
}
|
|
5366
5281
|
};
|
|
5367
|
-
var
|
|
5282
|
+
var _a = function() {
|
|
5368
5283
|
var e = this, t = e._self._c;
|
|
5369
5284
|
return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
|
|
5370
5285
|
return a.target !== a.currentTarget ? null : e.$emit("close");
|
|
5371
5286
|
} } }), 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) {
|
|
5372
5287
|
return e.$emit("convert");
|
|
5373
5288
|
} } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
|
|
5374
|
-
},
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5289
|
+
}, ka = [], La = /* @__PURE__ */ c(
|
|
5290
|
+
ba,
|
|
5291
|
+
_a,
|
|
5292
|
+
ka,
|
|
5378
5293
|
!1,
|
|
5379
5294
|
null,
|
|
5380
5295
|
null,
|
|
5381
5296
|
null,
|
|
5382
5297
|
null
|
|
5383
5298
|
);
|
|
5384
|
-
const
|
|
5385
|
-
const
|
|
5299
|
+
const $a = La.exports;
|
|
5300
|
+
const Sa = k.component("ProBadge", {
|
|
5386
5301
|
name: "ProBadge",
|
|
5387
|
-
|
|
5388
|
-
|
|
5302
|
+
render(i) {
|
|
5303
|
+
return i("div", {
|
|
5304
|
+
staticClass: "text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1"
|
|
5305
|
+
}, "Pro");
|
|
5306
|
+
}
|
|
5307
|
+
}), Ta = {
|
|
5389
5308
|
name: "MenuBlocks",
|
|
5390
5309
|
i18nOptions: {
|
|
5391
5310
|
namespaces: "menuBlocks",
|
|
@@ -5455,13 +5374,13 @@ const Ma = {
|
|
|
5455
5374
|
}
|
|
5456
5375
|
},
|
|
5457
5376
|
components: {
|
|
5458
|
-
simplebar:
|
|
5459
|
-
DragList:
|
|
5460
|
-
DragItem:
|
|
5461
|
-
AddBlock:
|
|
5462
|
-
IsPremiumPreStep:
|
|
5463
|
-
ProBadge:
|
|
5464
|
-
MenuBlockConvertPopover:
|
|
5377
|
+
simplebar: b,
|
|
5378
|
+
DragList: K,
|
|
5379
|
+
DragItem: Y,
|
|
5380
|
+
AddBlock: se,
|
|
5381
|
+
IsPremiumPreStep: I,
|
|
5382
|
+
ProBadge: Sa,
|
|
5383
|
+
MenuBlockConvertPopover: $a
|
|
5465
5384
|
},
|
|
5466
5385
|
props: {
|
|
5467
5386
|
_document: {
|
|
@@ -5485,7 +5404,12 @@ const Ma = {
|
|
|
5485
5404
|
default: !0
|
|
5486
5405
|
}
|
|
5487
5406
|
},
|
|
5488
|
-
|
|
5407
|
+
inject: {
|
|
5408
|
+
viewSettings: {
|
|
5409
|
+
default: () => ({ isPublicForm: !1 })
|
|
5410
|
+
}
|
|
5411
|
+
},
|
|
5412
|
+
mixins: [L],
|
|
5489
5413
|
data() {
|
|
5490
5414
|
return {
|
|
5491
5415
|
subMenuToShow: null,
|
|
@@ -5750,7 +5674,7 @@ const Ma = {
|
|
|
5750
5674
|
}
|
|
5751
5675
|
];
|
|
5752
5676
|
return i.forEach((e) => {
|
|
5753
|
-
|
|
5677
|
+
R[e.key] && (e.subMenu = (R[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
|
|
5754
5678
|
}), i;
|
|
5755
5679
|
},
|
|
5756
5680
|
availableBlocks() {
|
|
@@ -5763,7 +5687,7 @@ const Ma = {
|
|
|
5763
5687
|
return this.availableBlocks.filter(({ key: i }) => !this.primaryFilterNames.includes(i));
|
|
5764
5688
|
},
|
|
5765
5689
|
activeSubMenuKey() {
|
|
5766
|
-
return
|
|
5690
|
+
return u(this.activeSubMenu, "[0].key") || null;
|
|
5767
5691
|
}
|
|
5768
5692
|
// section key is added to each element in the menu
|
|
5769
5693
|
},
|
|
@@ -5793,14 +5717,14 @@ const Ma = {
|
|
|
5793
5717
|
});
|
|
5794
5718
|
},
|
|
5795
5719
|
deSyncTemplate() {
|
|
5796
|
-
["_id", "id"].forEach((i) => this.removeValue(`template.${i}`)), this.set({ key: "views.read.isEditable", value: !0 }), this.showConvertEditableDialog = !1;
|
|
5720
|
+
["_id", "id"].forEach((i) => this.removeValue(`template.${i}`)), this.set({ key: "template.views.read.isEditable", value: !0 }), this.showConvertEditableDialog = !1;
|
|
5797
5721
|
},
|
|
5798
5722
|
createTooltips() {
|
|
5799
5723
|
var n, s;
|
|
5800
5724
|
if (this.mq === "sm")
|
|
5801
5725
|
return;
|
|
5802
5726
|
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;
|
|
5803
|
-
this.tippyInstances =
|
|
5727
|
+
this.tippyInstances = ct(this.$el, {
|
|
5804
5728
|
target: "[data-tooltip-key]",
|
|
5805
5729
|
allowHTML: !0,
|
|
5806
5730
|
duration: [150, 0],
|
|
@@ -5825,7 +5749,7 @@ const Ma = {
|
|
|
5825
5749
|
i.destroy();
|
|
5826
5750
|
}) : this.tippyInstances.destroy && this.tippyInstances.destroy());
|
|
5827
5751
|
},
|
|
5828
|
-
setSubMenuState:
|
|
5752
|
+
setSubMenuState: M(function(e) {
|
|
5829
5753
|
this.activeSubMenu = e;
|
|
5830
5754
|
}, 100, { trailing: !0 }),
|
|
5831
5755
|
onMouseleaveDrawer() {
|
|
@@ -5836,10 +5760,11 @@ const Ma = {
|
|
|
5836
5760
|
return t && t.key;
|
|
5837
5761
|
},
|
|
5838
5762
|
isBlockLocked(i) {
|
|
5839
|
-
|
|
5763
|
+
var e;
|
|
5764
|
+
return !this.feature(`docBlock_${i}`) && !((e = this.viewSettings) != null && e.isPublicForm);
|
|
5840
5765
|
},
|
|
5841
5766
|
doesBlockExist(i) {
|
|
5842
|
-
return !!
|
|
5767
|
+
return !!u(this._document, "_doc.template.views.read.nodes", []).find((t) => t.itemId.startsWith(i));
|
|
5843
5768
|
},
|
|
5844
5769
|
getGhostParent() {
|
|
5845
5770
|
var t, a;
|
|
@@ -5859,7 +5784,7 @@ const Ma = {
|
|
|
5859
5784
|
}
|
|
5860
5785
|
}
|
|
5861
5786
|
};
|
|
5862
|
-
var
|
|
5787
|
+
var Da = function() {
|
|
5863
5788
|
var e = this, t = e._self._c;
|
|
5864
5789
|
return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
|
|
5865
5790
|
return e.$emit("block-added", a);
|
|
@@ -5893,23 +5818,23 @@ var Ia = function() {
|
|
|
5893
5818
|
e.subMenuToShow = e.activeSubMenu;
|
|
5894
5819
|
}, "&mouseleave": function(o) {
|
|
5895
5820
|
e.subMenuToShow = null;
|
|
5896
|
-
} } }, [t("simplebar", [t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (o) => e.getSubMenuPayload({ index: o, getBlockPayload: n }), "drop-placeholder": { className: "drag-drop-menu-placeholder" }, "get-ghost-parent": e.getGhostParent, "non-drag-area-selector": ".no-drag", "drag-handle-selector": ".drag-item", "group-name": "document-blocks", "ghost-class": "drag-drop-ghost", behaviour: "copy" } }, e._l(e.activeSubMenu, function(o, l) {
|
|
5897
|
-
return t("DragItem", { key: o.key + l, class: { "drag-item": !o.locked && e.canUseBlocks } }, [t("div", { staticClass: "relative" }, [t("div", { staticClass: "drag-item-preview", domProps: { innerHTML: e._s(o.previewUrl) }, on: { click: (r) => e.onUseBlock({ block: o, addBlock: a, openUpgradeModal: s }) } }), o.locked ? t("ProBadge", { staticClass: "absolute bottom-2 right-4" }) : e._e()], 1)]);
|
|
5821
|
+
} } }, [t("simplebar", { staticClass: "h-full py-4 pl-3", attrs: { "data-simplebar-auto-hide": "false" } }, [t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (o) => e.getSubMenuPayload({ index: o, getBlockPayload: n }), "drop-placeholder": { className: "drag-drop-menu-placeholder" }, "get-ghost-parent": e.getGhostParent, "non-drag-area-selector": ".no-drag", "drag-handle-selector": ".drag-item", "group-name": "document-blocks", "ghost-class": "drag-drop-ghost", behaviour: "copy" } }, e._l(e.activeSubMenu, function(o, l) {
|
|
5822
|
+
return t("DragItem", { key: o.key + l, staticClass: "px-1.5", class: { "drag-item": !o.locked && e.canUseBlocks } }, [t("div", { staticClass: "relative" }, [t("div", { staticClass: "drag-item-preview", domProps: { innerHTML: e._s(o.previewUrl) }, on: { click: (r) => e.onUseBlock({ block: o, addBlock: a, openUpgradeModal: s }) } }), o.locked ? t("ProBadge", { staticClass: "absolute bottom-2 right-4" }) : e._e()], 1)]);
|
|
5898
5823
|
}), 1)], 1)], 1)])], 1)];
|
|
5899
5824
|
} }], null, !0) })];
|
|
5900
5825
|
} }]) });
|
|
5901
|
-
},
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5826
|
+
}, Va = [], Ba = /* @__PURE__ */ c(
|
|
5827
|
+
Ta,
|
|
5828
|
+
Da,
|
|
5829
|
+
Va,
|
|
5905
5830
|
!1,
|
|
5906
5831
|
null,
|
|
5907
|
-
"
|
|
5832
|
+
"2f285e04",
|
|
5908
5833
|
null,
|
|
5909
5834
|
null
|
|
5910
5835
|
);
|
|
5911
|
-
const
|
|
5912
|
-
const
|
|
5836
|
+
const Ma = Ba.exports;
|
|
5837
|
+
const Ia = {
|
|
5913
5838
|
name: "DocumentFormMenu",
|
|
5914
5839
|
i18nOptions: {
|
|
5915
5840
|
namespaces: "documentFormMenu",
|
|
@@ -5925,12 +5850,13 @@ const Pa = {
|
|
|
5925
5850
|
}
|
|
5926
5851
|
},
|
|
5927
5852
|
components: {
|
|
5928
|
-
Design:
|
|
5929
|
-
Fields:
|
|
5930
|
-
ExtensionTab:
|
|
5931
|
-
DocumentGeneralSettings:
|
|
5932
|
-
DocumentGuide:
|
|
5933
|
-
MenuBlocks:
|
|
5853
|
+
Design: ta,
|
|
5854
|
+
Fields: pa,
|
|
5855
|
+
ExtensionTab: ga,
|
|
5856
|
+
DocumentGeneralSettings: wa,
|
|
5857
|
+
DocumentGuide: () => import("./index-5bf60a14.js"),
|
|
5858
|
+
MenuBlocks: Ma,
|
|
5859
|
+
Simplebar: b
|
|
5934
5860
|
},
|
|
5935
5861
|
props: {
|
|
5936
5862
|
state: {
|
|
@@ -5970,7 +5896,7 @@ const Pa = {
|
|
|
5970
5896
|
data() {
|
|
5971
5897
|
return {
|
|
5972
5898
|
showGuide: !1,
|
|
5973
|
-
showGuideNotification: !
|
|
5899
|
+
showGuideNotification: !F.getItem("hideFormGuideNotification"),
|
|
5974
5900
|
tab: "blocks"
|
|
5975
5901
|
};
|
|
5976
5902
|
},
|
|
@@ -5992,11 +5918,11 @@ const Pa = {
|
|
|
5992
5918
|
},
|
|
5993
5919
|
methods: {
|
|
5994
5920
|
openGuide() {
|
|
5995
|
-
this.showGuide = !0, this.showGuideNotification = !1,
|
|
5921
|
+
this.showGuide = !0, this.showGuideNotification = !1, F.setItem("hideFormGuideNotification", !0);
|
|
5996
5922
|
}
|
|
5997
5923
|
}
|
|
5998
5924
|
};
|
|
5999
|
-
var
|
|
5925
|
+
var Fa = function() {
|
|
6000
5926
|
var e = this, t = e._self._c;
|
|
6001
5927
|
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) {
|
|
6002
5928
|
return e.$emit("close");
|
|
@@ -6014,15 +5940,15 @@ var Ea = function() {
|
|
|
6014
5940
|
e.extensionTabType === "salesforce" && { backgroundColor: "#009CDB" }
|
|
6015
5941
|
] }, [t("BaseIcon", { staticStyle: { color: "white" }, attrs: { type: e.extensionTabType, size: "14" } })], 1)]) : e._e(), t("div", { staticClass: "tab-item ml-[2px]", class: { "is-active": e.tab === "generalSettings" }, on: { click: function(a) {
|
|
6016
5942
|
e.tab = "generalSettings";
|
|
6017
|
-
} } }, [t("BaseIcon", { staticStyle: {}, attrs: { type: "cog", size: "16" } })], 1)]), e.tab === "blocks" ? t("MenuBlocks", { attrs: { _document: e.state, set: e.set, "remove-value": e.removeValue, fixed: e.fixed, "can-use-blocks": e.canUseBlocks }, on: { "block-added": e.onAddedBlock } }, [t("div", { staticStyle: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "flex-end", "align-items": "flex-start", padding: "calc(1 * var(--rem))" }, attrs: { slot: "footer" }, slot: "footer" }, [t("CButton", { staticStyle: { position: "relative" }, attrs: { "icon-left": "help", type: "none", pattern: "secondary", size: "small" }, on: { click: e.openGuide } }, [e._v(" " + e._s(e.$t("guideButton")) + " "), e.showGuideNotification ? t("div", { staticClass: "circle-pulse" }) : e._e()])], 1)]) :
|
|
5943
|
+
} } }, [t("BaseIcon", { staticStyle: {}, attrs: { type: "cog", size: "16" } })], 1)]), e.tab === "blocks" ? t("MenuBlocks", { attrs: { _document: e.state, set: e.set, "remove-value": e.removeValue, fixed: e.fixed, "can-use-blocks": e.canUseBlocks }, on: { "block-added": e.onAddedBlock } }, [t("div", { staticStyle: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "flex-end", "align-items": "flex-start", padding: "calc(1 * var(--rem))" }, attrs: { slot: "footer" }, slot: "footer" }, [t("CButton", { staticStyle: { position: "relative" }, attrs: { "icon-left": "help", type: "none", pattern: "secondary", size: "small" }, on: { click: e.openGuide } }, [e._v(" " + e._s(e.$t("guideButton")) + " "), e.showGuideNotification ? t("div", { staticClass: "circle-pulse" }) : e._e()])], 1)]) : t("div", { staticClass: "menu-container" }, [t("Simplebar", { staticClass: "w-full h-full" }, [e.tab === "design" ? t("Design", { attrs: { _document: e.state, _value: {
|
|
6018
5944
|
css: "data.css"
|
|
6019
|
-
}, set: e.set, offset: e.width } }) : e.tab === "fields" ? t("Fields", {
|
|
5945
|
+
}, set: e.set, offset: e.width } }) : e.tab === "fields" ? t("Fields", { attrs: { _document: e.state, "crm-service": e.extensionTabType, _value: {
|
|
6020
5946
|
css: "data.css"
|
|
6021
|
-
}, set: e.set } }) : e.tab === "extension" ? t("ExtensionTab", {
|
|
5947
|
+
}, set: e.set } }) : e.tab === "extension" ? t("ExtensionTab", { attrs: { _document: e.state, _value: {
|
|
6022
5948
|
externalReferences: "externalReferences",
|
|
6023
5949
|
clients: "clients",
|
|
6024
5950
|
articles: "articles"
|
|
6025
|
-
} }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e(), e.tab === "generalSettings" ? t("DocumentGeneralSettings", {
|
|
5951
|
+
} }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e(), e.tab === "generalSettings" ? t("DocumentGeneralSettings", { class: { "!top-0 rounded-sm": e.isLegacyTemplate }, attrs: { _document: e.state, _value: {
|
|
6026
5952
|
term: "data.terms",
|
|
6027
5953
|
series: "docNumber.series",
|
|
6028
5954
|
tags: "tags",
|
|
@@ -6032,59 +5958,78 @@ var Ea = function() {
|
|
|
6032
5958
|
useVat: "data.formSettings.useVat",
|
|
6033
5959
|
vatType: "data.formSettings.vatType",
|
|
6034
5960
|
rounding: "data.formSettings.rounding"
|
|
6035
|
-
}, offset: e.width }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e(), e.showGuide ? t("DocumentGuide", { on: { close: function(a) {
|
|
5961
|
+
}, 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) {
|
|
6036
5962
|
e.showGuide = !1;
|
|
6037
5963
|
} } }) : e._e()], 1)])]);
|
|
6038
|
-
},
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
5964
|
+
}, Ha = [], Aa = /* @__PURE__ */ c(
|
|
5965
|
+
Ia,
|
|
5966
|
+
Fa,
|
|
5967
|
+
Ha,
|
|
6042
5968
|
!1,
|
|
6043
5969
|
null,
|
|
6044
|
-
"
|
|
5970
|
+
"383e8c99",
|
|
6045
5971
|
null,
|
|
6046
5972
|
null
|
|
6047
5973
|
);
|
|
6048
|
-
const
|
|
6049
|
-
const
|
|
5974
|
+
const Pa = Aa.exports;
|
|
5975
|
+
const Ea = {
|
|
6050
5976
|
name: "BlockControlButtons",
|
|
5977
|
+
i18nOptions: {
|
|
5978
|
+
namespace: "blockControlButtons",
|
|
5979
|
+
messages: {
|
|
5980
|
+
en: {
|
|
5981
|
+
hidden: "Hidden"
|
|
5982
|
+
},
|
|
5983
|
+
sv: {
|
|
5984
|
+
hidden: "Dold"
|
|
5985
|
+
}
|
|
5986
|
+
}
|
|
5987
|
+
},
|
|
6051
5988
|
props: {
|
|
6052
5989
|
isVisible: {
|
|
6053
5990
|
type: [Boolean, Object],
|
|
6054
|
-
default:
|
|
5991
|
+
default: void 0
|
|
6055
5992
|
},
|
|
6056
5993
|
isMovable: {
|
|
6057
5994
|
type: Boolean,
|
|
6058
5995
|
default: !0
|
|
6059
5996
|
}
|
|
5997
|
+
},
|
|
5998
|
+
computed: {
|
|
5999
|
+
canToggleVisibility() {
|
|
6000
|
+
return typeof this.isVisible == "boolean";
|
|
6001
|
+
},
|
|
6002
|
+
isHidden() {
|
|
6003
|
+
return typeof this.isVisible == "boolean" && !this.isVisible;
|
|
6004
|
+
}
|
|
6060
6005
|
}
|
|
6061
6006
|
};
|
|
6062
|
-
var
|
|
6007
|
+
var za = function() {
|
|
6063
6008
|
var e = this, t = e._self._c;
|
|
6064
|
-
return t("div", { staticClass: "flex flex-col gap-1 control-root" }, [t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6009
|
+
return t("div", { staticClass: "flex flex-col gap-1 control-root" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6065
6010
|
return e.$emit("toggle-visible", !e.isVisible);
|
|
6066
|
-
} } }, [e.isVisible ? e._e() : t("span", { staticClass: "px-1.5 text-xs text-gray-600" }, [e._v("
|
|
6011
|
+
} } }, [e.isVisible ? e._e() : t("span", { staticClass: "px-1.5 text-xs text-gray-600" }, [e._v(" " + e._s(e.$t("hidden")) + " ")]), t("BaseIcon", { class: { "mr-1": !e.isVisible }, attrs: { type: e.isVisible ? "eye" : "eye-off", size: "14" } })], 1) : e._e(), !e.isHidden && e.isMovable ? [t("div", { staticClass: "control-direction" }, [t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6067
6012
|
return e.$emit("move", "up");
|
|
6068
6013
|
} } }, [t("BaseIcon", { attrs: { type: "chevron-up", size: "16" } })], 1), t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6069
6014
|
return e.$emit("move", "down");
|
|
6070
6015
|
} } }, [t("BaseIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
|
|
6071
6016
|
return e.$emit("remove");
|
|
6072
6017
|
} } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)] : e._e()], 2);
|
|
6073
|
-
},
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6018
|
+
}, Za = [], Oa = /* @__PURE__ */ c(
|
|
6019
|
+
Ea,
|
|
6020
|
+
za,
|
|
6021
|
+
Za,
|
|
6077
6022
|
!1,
|
|
6078
6023
|
null,
|
|
6079
|
-
"
|
|
6024
|
+
"79921f13",
|
|
6080
6025
|
null,
|
|
6081
6026
|
null
|
|
6082
6027
|
);
|
|
6083
|
-
const
|
|
6084
|
-
const
|
|
6028
|
+
const Ra = Oa.exports;
|
|
6029
|
+
const Ga = {
|
|
6085
6030
|
name: "DynamicBlock",
|
|
6086
6031
|
components: {
|
|
6087
|
-
BlockControlButtons:
|
|
6032
|
+
BlockControlButtons: Ra
|
|
6088
6033
|
},
|
|
6089
6034
|
props: {
|
|
6090
6035
|
isDragging: {
|
|
@@ -6109,7 +6054,7 @@ const Na = {
|
|
|
6109
6054
|
},
|
|
6110
6055
|
isVisible: {
|
|
6111
6056
|
type: [Boolean, Object],
|
|
6112
|
-
default:
|
|
6057
|
+
default: void 0
|
|
6113
6058
|
},
|
|
6114
6059
|
disableControls: {
|
|
6115
6060
|
type: Boolean,
|
|
@@ -6122,22 +6067,25 @@ const Na = {
|
|
|
6122
6067
|
};
|
|
6123
6068
|
},
|
|
6124
6069
|
computed: {
|
|
6070
|
+
isHidden() {
|
|
6071
|
+
return typeof this.isVisible == "boolean" && !this.isVisible;
|
|
6072
|
+
},
|
|
6125
6073
|
showControls() {
|
|
6126
|
-
return this.disableControls ? !1 : !this.isDragging && this.isHovering ? !0 :
|
|
6074
|
+
return !this.isEditView || this.disableControls ? !1 : !this.isDragging && this.isHovering ? !0 : this.isHidden;
|
|
6127
6075
|
},
|
|
6128
6076
|
contentClass() {
|
|
6129
|
-
return this.
|
|
6077
|
+
return this.isHidden ? "h-16 overflow-hidden after:bg-gradient-to-b after:from-white/50 after:to-white relative after:absolute after:content-[''] after:inset-0 after:z-[1]" : "";
|
|
6130
6078
|
}
|
|
6131
6079
|
}
|
|
6132
6080
|
};
|
|
6133
|
-
var
|
|
6081
|
+
var Ua = function() {
|
|
6134
6082
|
var e = this, t = e._self._c;
|
|
6135
|
-
return t("Animation", { staticClass: "w-full" }, [
|
|
6083
|
+
return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
|
|
6136
6084
|
{
|
|
6137
6085
|
"is-edit-view": e.isEditView,
|
|
6138
6086
|
"is-hovering": e.isHovering,
|
|
6139
|
-
"min-h-none": e.blockType === "custom" ||
|
|
6140
|
-
"border-b border-gray-200":
|
|
6087
|
+
"min-h-none": e.blockType === "custom" || e.isHidden,
|
|
6088
|
+
"border-b border-gray-200": e.isHidden
|
|
6141
6089
|
},
|
|
6142
6090
|
e.contentClass
|
|
6143
6091
|
], style: e.isDragging && {
|
|
@@ -6146,29 +6094,29 @@ var ja = function() {
|
|
|
6146
6094
|
e.isHovering = !0;
|
|
6147
6095
|
}, "&mouseleave": function(a) {
|
|
6148
6096
|
e.isHovering = !1;
|
|
6149
|
-
} } }, [t("div", { staticClass: "block-container", class: { "spacing-snug":
|
|
6097
|
+
} } }, [t("div", { staticClass: "block-container", class: { "spacing-snug": e.isHidden }, attrs: { inert: e.isHidden } }, [e._t("default")], 2), e.showControls ? t("BlockControlButtons", { staticClass: "control-root z-10", attrs: { "is-movable": e.canMove, "is-visible": e.isVisible }, on: { "toggle-visible": function(a) {
|
|
6150
6098
|
return e.$emit("toggle-visible", a);
|
|
6151
6099
|
}, move: function(a) {
|
|
6152
6100
|
return e.$emit("move", a);
|
|
6153
6101
|
}, remove: function(a) {
|
|
6154
6102
|
return e.$emit("remove");
|
|
6155
|
-
} } }) : e._e()], 1)
|
|
6156
|
-
},
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6103
|
+
} } }) : e._e()], 1)]);
|
|
6104
|
+
}, Wa = [], qa = /* @__PURE__ */ c(
|
|
6105
|
+
Ga,
|
|
6106
|
+
Ua,
|
|
6107
|
+
Wa,
|
|
6160
6108
|
!1,
|
|
6161
6109
|
null,
|
|
6162
|
-
"
|
|
6110
|
+
"60aa95ad",
|
|
6163
6111
|
null,
|
|
6164
6112
|
null
|
|
6165
6113
|
);
|
|
6166
|
-
const
|
|
6167
|
-
const
|
|
6114
|
+
const Na = qa.exports;
|
|
6115
|
+
const ja = {
|
|
6168
6116
|
name: "DocumentDrawer",
|
|
6169
6117
|
components: {
|
|
6170
|
-
simplebar:
|
|
6171
|
-
Drawer:
|
|
6118
|
+
simplebar: b,
|
|
6119
|
+
Drawer: oe
|
|
6172
6120
|
},
|
|
6173
6121
|
props: {
|
|
6174
6122
|
position: {
|
|
@@ -6190,7 +6138,7 @@ const Ja = {
|
|
|
6190
6138
|
}
|
|
6191
6139
|
}
|
|
6192
6140
|
};
|
|
6193
|
-
var
|
|
6141
|
+
var Ka = function() {
|
|
6194
6142
|
var e = this, t = e._self._c;
|
|
6195
6143
|
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: {
|
|
6196
6144
|
"is-sticky": !e.fixed
|
|
@@ -6202,18 +6150,18 @@ var Xa = function() {
|
|
|
6202
6150
|
padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
|
|
6203
6151
|
...e.fixedStyle
|
|
6204
6152
|
} }, [e._t("default")], 2)])])]) : e._e()], 1);
|
|
6205
|
-
},
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6153
|
+
}, Ya = [], Qa = /* @__PURE__ */ c(
|
|
6154
|
+
ja,
|
|
6155
|
+
Ka,
|
|
6156
|
+
Ya,
|
|
6209
6157
|
!1,
|
|
6210
6158
|
null,
|
|
6211
6159
|
"f0a56edd",
|
|
6212
6160
|
null,
|
|
6213
6161
|
null
|
|
6214
6162
|
);
|
|
6215
|
-
const
|
|
6216
|
-
const
|
|
6163
|
+
const Ja = Qa.exports;
|
|
6164
|
+
const Xa = {
|
|
6217
6165
|
name: "DocumentFormViewRadio",
|
|
6218
6166
|
props: {
|
|
6219
6167
|
value: {
|
|
@@ -6226,24 +6174,24 @@ const nn = {
|
|
|
6226
6174
|
}
|
|
6227
6175
|
}
|
|
6228
6176
|
};
|
|
6229
|
-
var
|
|
6177
|
+
var en = function() {
|
|
6230
6178
|
var e = this, t = e._self._c;
|
|
6231
6179
|
return t("div", { staticClass: "nav-toggle font-inter" }, [t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "edit" }, on: { click: function(a) {
|
|
6232
6180
|
e.value === "preview" && e.$emit("input", "edit");
|
|
6233
6181
|
} } }, [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) {
|
|
6234
6182
|
e.value === "edit" && e.$emit("input", "preview");
|
|
6235
6183
|
} } }, [e.small ? t("BaseIcon", { attrs: { type: "eye" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
|
|
6236
|
-
},
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6184
|
+
}, tn = [], an = /* @__PURE__ */ c(
|
|
6185
|
+
Xa,
|
|
6186
|
+
en,
|
|
6187
|
+
tn,
|
|
6240
6188
|
!1,
|
|
6241
6189
|
null,
|
|
6242
6190
|
"bfd27279",
|
|
6243
6191
|
null,
|
|
6244
6192
|
null
|
|
6245
6193
|
);
|
|
6246
|
-
const
|
|
6194
|
+
const nn = an.exports, sn = {
|
|
6247
6195
|
name: "LogoBanner",
|
|
6248
6196
|
props: {
|
|
6249
6197
|
position: {
|
|
@@ -6261,44 +6209,44 @@ const rn = ln.exports, cn = {
|
|
|
6261
6209
|
}
|
|
6262
6210
|
}
|
|
6263
6211
|
};
|
|
6264
|
-
var
|
|
6212
|
+
var on = function() {
|
|
6265
6213
|
var e = this, t = e._self._c;
|
|
6266
6214
|
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")) + " ")])])]);
|
|
6267
|
-
},
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6215
|
+
}, ln = [], rn = /* @__PURE__ */ c(
|
|
6216
|
+
sn,
|
|
6217
|
+
on,
|
|
6218
|
+
ln,
|
|
6271
6219
|
!1,
|
|
6272
6220
|
null,
|
|
6273
6221
|
null,
|
|
6274
6222
|
null,
|
|
6275
6223
|
null
|
|
6276
6224
|
);
|
|
6277
|
-
const
|
|
6278
|
-
const
|
|
6225
|
+
const cn = rn.exports;
|
|
6226
|
+
const dn = {
|
|
6279
6227
|
name: "DocumentFormNav"
|
|
6280
6228
|
};
|
|
6281
|
-
var
|
|
6229
|
+
var pn = function() {
|
|
6282
6230
|
var e = this, t = e._self._c;
|
|
6283
6231
|
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)])]);
|
|
6284
|
-
},
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6232
|
+
}, un = [], mn = /* @__PURE__ */ c(
|
|
6233
|
+
dn,
|
|
6234
|
+
pn,
|
|
6235
|
+
un,
|
|
6288
6236
|
!1,
|
|
6289
6237
|
null,
|
|
6290
6238
|
"05fc111c",
|
|
6291
6239
|
null,
|
|
6292
6240
|
null
|
|
6293
6241
|
);
|
|
6294
|
-
const
|
|
6295
|
-
const
|
|
6242
|
+
const hn = mn.exports;
|
|
6243
|
+
const re = (i, e, t = "$children") => {
|
|
6296
6244
|
if (!i)
|
|
6297
6245
|
return;
|
|
6298
6246
|
e(i);
|
|
6299
6247
|
const a = i[t];
|
|
6300
|
-
!a && !Array.isArray(a) || a.forEach((n) =>
|
|
6301
|
-
},
|
|
6248
|
+
!a && !Array.isArray(a) || a.forEach((n) => re(n, e));
|
|
6249
|
+
}, fn = {
|
|
6302
6250
|
i18nOptions: {
|
|
6303
6251
|
namespaces: "DocumentFormContainer",
|
|
6304
6252
|
messages: {
|
|
@@ -6314,19 +6262,19 @@ const oe = (i, e, t = "$children") => {
|
|
|
6314
6262
|
},
|
|
6315
6263
|
name: "DocumentFormContainer",
|
|
6316
6264
|
components: {
|
|
6317
|
-
WithDimensions:
|
|
6318
|
-
DragList:
|
|
6319
|
-
DragItem:
|
|
6320
|
-
DynamicChapter:
|
|
6321
|
-
DocumentFormMenu:
|
|
6322
|
-
DynamicBlock:
|
|
6323
|
-
DocumentFormViewRadio:
|
|
6324
|
-
DocumentFormNav:
|
|
6325
|
-
DocumentDrawer:
|
|
6326
|
-
DocumentStyleContainer:
|
|
6327
|
-
simplebar:
|
|
6328
|
-
LogoBanner:
|
|
6329
|
-
IsPremium:
|
|
6265
|
+
WithDimensions: Je,
|
|
6266
|
+
DragList: K,
|
|
6267
|
+
DragItem: Y,
|
|
6268
|
+
DynamicChapter: Xe,
|
|
6269
|
+
DocumentFormMenu: Pa,
|
|
6270
|
+
DynamicBlock: Na,
|
|
6271
|
+
DocumentFormViewRadio: nn,
|
|
6272
|
+
DocumentFormNav: hn,
|
|
6273
|
+
DocumentDrawer: Ja,
|
|
6274
|
+
DocumentStyleContainer: et,
|
|
6275
|
+
simplebar: b,
|
|
6276
|
+
LogoBanner: cn,
|
|
6277
|
+
IsPremium: Q
|
|
6330
6278
|
},
|
|
6331
6279
|
props: {
|
|
6332
6280
|
_document: {
|
|
@@ -6357,9 +6305,13 @@ const oe = (i, e, t = "$children") => {
|
|
|
6357
6305
|
goBack: {
|
|
6358
6306
|
type: Function,
|
|
6359
6307
|
default: null
|
|
6308
|
+
},
|
|
6309
|
+
canShowBanner: {
|
|
6310
|
+
type: Boolean,
|
|
6311
|
+
default: !0
|
|
6360
6312
|
}
|
|
6361
6313
|
},
|
|
6362
|
-
mixins: [
|
|
6314
|
+
mixins: [L],
|
|
6363
6315
|
data() {
|
|
6364
6316
|
return {
|
|
6365
6317
|
drawerState: v,
|
|
@@ -6374,28 +6326,28 @@ const oe = (i, e, t = "$children") => {
|
|
|
6374
6326
|
},
|
|
6375
6327
|
computed: {
|
|
6376
6328
|
docTemplate() {
|
|
6377
|
-
return
|
|
6329
|
+
return u(this._document, "template", null);
|
|
6378
6330
|
},
|
|
6379
6331
|
isTemplateEditable() {
|
|
6380
|
-
return
|
|
6332
|
+
return u(this.docTemplate, "views.read.isEditable", !1);
|
|
6381
6333
|
},
|
|
6382
6334
|
canMove() {
|
|
6383
|
-
return this.isTemplateEditable;
|
|
6335
|
+
return this.isTemplateEditable && this.isEditView;
|
|
6384
6336
|
},
|
|
6385
6337
|
readLayout() {
|
|
6386
|
-
return
|
|
6338
|
+
return u(this.docTemplate, "views.read.nodes", []);
|
|
6387
6339
|
},
|
|
6388
6340
|
nestedReadLayout() {
|
|
6389
6341
|
return this._document.getReadLayout({ showHiddenNodes: this.isEditView });
|
|
6390
6342
|
},
|
|
6391
6343
|
currency() {
|
|
6392
|
-
return
|
|
6344
|
+
return u(this._document, "currency");
|
|
6393
6345
|
},
|
|
6394
6346
|
externalReferences() {
|
|
6395
|
-
return
|
|
6347
|
+
return u(this._document, "externalReferences") || [];
|
|
6396
6348
|
},
|
|
6397
6349
|
headingColor() {
|
|
6398
|
-
return
|
|
6350
|
+
return u(this._document, "theme.headingColor");
|
|
6399
6351
|
},
|
|
6400
6352
|
isEditView() {
|
|
6401
6353
|
return this.view === "edit";
|
|
@@ -6450,7 +6402,7 @@ const oe = (i, e, t = "$children") => {
|
|
|
6450
6402
|
},
|
|
6451
6403
|
methods: {
|
|
6452
6404
|
onAddBlockMount(i, e) {
|
|
6453
|
-
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() =>
|
|
6405
|
+
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => mt(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
|
|
6454
6406
|
},
|
|
6455
6407
|
onBlockToggleVisible(i, e) {
|
|
6456
6408
|
const a = [...this.readLayout].findIndex(
|
|
@@ -6471,7 +6423,7 @@ const oe = (i, e, t = "$children") => {
|
|
|
6471
6423
|
const a = i.itemId.split("-")[1];
|
|
6472
6424
|
this.removePackageGroup(a);
|
|
6473
6425
|
} else
|
|
6474
|
-
|
|
6426
|
+
re(i, (n) => {
|
|
6475
6427
|
n.value && Object.values(n.value).forEach((s) => {
|
|
6476
6428
|
this.removeFormKeyValue(`${s}`);
|
|
6477
6429
|
let o = s.replace(/^data.(?!properties)/g, "data.properties.");
|
|
@@ -6491,17 +6443,17 @@ const oe = (i, e, t = "$children") => {
|
|
|
6491
6443
|
Array.isArray(e.packages) && e.packages.forEach((a) => {
|
|
6492
6444
|
this.setFormValue({
|
|
6493
6445
|
key: "articles",
|
|
6494
|
-
value:
|
|
6446
|
+
value: u(this._document, "_doc.articles", []).filter(({ packageId: n }) => n !== a.packageId)
|
|
6495
6447
|
});
|
|
6496
6448
|
});
|
|
6497
|
-
const t = Object.assign({},
|
|
6498
|
-
delete t[i], this.setFormValue({ key: "data.packageGroups", value: t }), Object.keys(
|
|
6449
|
+
const t = Object.assign({}, u(this._document, "_doc.data.packageGroups"));
|
|
6450
|
+
delete t[i], this.setFormValue({ key: "data.packageGroups", value: t }), Object.keys(u(this._document, "_doc.data.packageGroups", {})).length || this.removeFormValue("template.validationSchema.properties.data.properties.packageGroups");
|
|
6499
6451
|
},
|
|
6500
6452
|
onBlockListChange(i, { removedIndex: e, addedIndex: t, payload: a }) {
|
|
6501
6453
|
if (e !== null && t !== null) {
|
|
6502
6454
|
if (e === t)
|
|
6503
6455
|
return;
|
|
6504
|
-
const n =
|
|
6456
|
+
const n = Oe(this.nestedReadLayout, e, t);
|
|
6505
6457
|
this.setFormValue({
|
|
6506
6458
|
key: "template.views.read.nodes",
|
|
6507
6459
|
value: D(n)
|
|
@@ -6516,20 +6468,20 @@ const oe = (i, e, t = "$children") => {
|
|
|
6516
6468
|
readView: r,
|
|
6517
6469
|
validation: p,
|
|
6518
6470
|
data: C,
|
|
6519
|
-
onAddFnName:
|
|
6471
|
+
onAddFnName: T = "onAdd"
|
|
6520
6472
|
} = s({ sectionKey: n, document: this._document, contentData: l });
|
|
6521
6473
|
o({ validation: p, data: C });
|
|
6522
|
-
const
|
|
6474
|
+
const ce = Re({ tree: r }), de = [
|
|
6523
6475
|
...this.nestedReadLayout.slice(0, t),
|
|
6524
|
-
...
|
|
6476
|
+
...ce,
|
|
6525
6477
|
...this.nestedReadLayout.slice(t)
|
|
6526
6478
|
];
|
|
6527
6479
|
this.setFormValue({
|
|
6528
6480
|
key: "template.views.read.nodes",
|
|
6529
|
-
value: D(
|
|
6481
|
+
value: D(de)
|
|
6530
6482
|
});
|
|
6531
|
-
const [{ nodeId:
|
|
6532
|
-
this.onAddRedis[
|
|
6483
|
+
const [{ nodeId: pe }] = r;
|
|
6484
|
+
this.onAddRedis[pe] = T;
|
|
6533
6485
|
}
|
|
6534
6486
|
},
|
|
6535
6487
|
shouldAnimateDrop(i) {
|
|
@@ -6537,7 +6489,7 @@ const oe = (i, e, t = "$children") => {
|
|
|
6537
6489
|
}
|
|
6538
6490
|
}
|
|
6539
6491
|
};
|
|
6540
|
-
var
|
|
6492
|
+
var gn = function() {
|
|
6541
6493
|
var e = this, t = e._self._c;
|
|
6542
6494
|
return t("div", { staticStyle: { overflow: "auto", height: "100vh" } }, [t("div", { staticClass: "flex container-root font-inter", class: {
|
|
6543
6495
|
"is-edit-view": e.isEditView,
|
|
@@ -6552,9 +6504,9 @@ var xn = function() {
|
|
|
6552
6504
|
marginLeft: `${e.sidebarWidth}px`
|
|
6553
6505
|
} }, [t("DocumentFormNav", { style: {
|
|
6554
6506
|
marginLeft: e.drawerState.showLeft ? `${e.sidebarWidth}px` : 0
|
|
6555
|
-
}, attrs: { close: e.close } }, [t("div", { staticClass: "flex items-center w-full", staticStyle: { position: "relative" }, attrs: { slot: "left" }, slot: "left" }, [e.close ? t("CButton", { staticClass: "d-nav-button position left close", staticStyle: { "font-size": "16px", height: "2.25em", width: "2.25em", "flex-shrink": "0", "margin-right": "0.5em", "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: e.close } }) : e._e(), e.goBack ? t("CButton", { staticClass: "mr-2", staticStyle: { "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { circle: "", type: "none", pattern: "tertiary", icon: "arrow-left" }, on: { click: e.goBack } }) : e._e(), t("CButton", { staticStyle: { "font-size": "16px", height: "2.5em", width: "2.5em", "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { circle: "", type: "none", pattern: "tertiary", icon: "sidebar" }, on: { click: function(a) {
|
|
6507
|
+
}, attrs: { close: e.close } }, [t("div", { staticClass: "flex items-center w-full", staticStyle: { position: "relative" }, attrs: { slot: "left" }, slot: "left" }, [e.close ? t("CButton", { staticClass: "d-nav-button position left close", staticStyle: { "font-size": "16px", height: "2.25em", width: "2.25em", "flex-shrink": "0", "margin-right": "0.5em", "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: e.close } }) : e._e(), e.goBack ? t("CButton", { staticClass: "mr-2", staticStyle: { "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { circle: "", type: "none", pattern: "tertiary", icon: "arrow-left" }, on: { click: e.goBack } }) : e._e(), t("div", { staticClass: "relative" }, [t("CButton", { staticStyle: { "font-size": "16px", height: "2.5em", width: "2.5em", "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { circle: "", type: "none", pattern: "tertiary", icon: "sidebar" }, on: { click: function(a) {
|
|
6556
6508
|
return a.stopPropagation(), e.drawerState.toggleLeft.apply(null, arguments);
|
|
6557
|
-
} } }), t("transition", { attrs: { name: "fade-bounce", appear: "" } }, [!e.nestedReadLayout.length && e.isFixedSidebar ? t("div", { staticClass: "
|
|
6509
|
+
} } }), t("transition", { attrs: { name: "fade-bounce", appear: "" } }, [!e.nestedReadLayout.length && e.isFixedSidebar ? t("div", { staticClass: "absolute w-64 p-3 text-base font-semibold leading-snug text-white translate-y-2 rounded-lg shadow-lg bg-primary-500 -left-3/4 top-full" }, [e._v(" " + e._s(e.$t("emptyBlockPlaceholderSmall")) + " "), t("svg", { staticClass: "absolute top-0 -translate-y-full text-primary-500 left-10", attrs: { width: "16", height: "6", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z", fill: "currentColor" } })])]) : e._e()])], 1), e._t("nav-left")], 2), t("div", { staticStyle: { position: "relative" }, attrs: { slot: "center" }, slot: "center" }, [t("DocumentFormViewRadio", { directives: [{ name: "show", rawName: "v-show", value: e.nestedReadLayout.length, expression: "nestedReadLayout.length" }], attrs: { small: e.mq === "sm", value: e.view }, on: { input: function(a) {
|
|
6558
6510
|
return e.$emit("update:view", a);
|
|
6559
6511
|
} } }), !e.isEditView && !["sm", "md"].includes(e.mq) ? t("div", { staticStyle: { position: "absolute", left: "calc(100% + calc(1.25 * var(--rem)))", transform: "translateY(50%)", top: "-50%", display: "inline-flex", "border-radius": "2em", padding: "3px", "background-color": "hsl(0, 0%, 0%, 0.07)", "backdrop-filter": "saturate(180%) blur(20px)", "font-size": "15px", height: "36px" } }, e._l(["desktop", "tablet", "mobile"], function(a) {
|
|
6560
6512
|
return t("div", { key: a, staticStyle: { "border-radius": "2em", "font-weight": "500", cursor: "pointer", "padding-top": "4px", "padding-bottom": "4px", margin: "0 4px", "user-select": "none", display: "inline-flex", "align-items": "center", "justify-content": "center", color: "hsl(0, 0%, 0%, 0.5)", transition: "150ms" }, style: e.previewDevice === a && {
|
|
@@ -6573,7 +6525,7 @@ var xn = function() {
|
|
|
6573
6525
|
"is-empty": !e.nestedReadLayout.length
|
|
6574
6526
|
},
|
|
6575
6527
|
!e.isEditView && `is-device-${e.previewDevice}`
|
|
6576
|
-
] }, [!e.nestedReadLayout.length && !e.isFixedSidebar ? t("div", { staticClass: "drag-drop-empty-list is-placeholder
|
|
6528
|
+
] }, [!e.nestedReadLayout.length && !e.isFixedSidebar ? t("div", { staticClass: "text-gray-400 drag-drop-empty-list is-placeholder" }, [t("div", { staticStyle: { position: "relative" } }, [e._m(0), t("svg", { staticClass: "drag-drop-illustration", attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 50 50" } }, [t("path", { staticClass: "drag-drop-illustration-finger", attrs: { d: "M8 0a4 4 0 00-2.7 1C4.6 1.6 4 2.7 4 4v21.4c-.4.2-.8.2-1.7 1A7.2 7.2 0 000 31.8c0 2 .8 3.8 1 4.5L4 42s-.1 0 0 0c1.4 3.1 4.5 5 8 5h9c5 0 9-4 9-9V22c0-.8-.1-2-.7-3-.5-1-1.7-2-3.3-2-1 0-2 .4-2.6.9 0-.3-.1-.7-.3-1-.6-1-1.7-1.9-3.1-1.9a4 4 0 00-2.7 1c-.6-1.1-1.7-2-3.3-2-.8 0-1.4.2-2 .6V4a4 4 0 00-4-4z", fill: "#000", "fill-rule": "nonzero" } }), t("path", { staticClass: "drag-drop-illustration-grabbing", attrs: { transform: "translate(0 11)", d: "M14 1c-.8 0-1.8.2-2.6.8l-.9 1a4 4 0 00-5.2.2C4.6 3.6 4 4.7 4 5.9V14c-1.7.7-4 3-4 7 0 2.2.9 4.2 1 4.5L3.9 31c1.5 3.1 4.6 5 8 5H21c5 0 9-4 9-9V9c0-4.4-2.5-5-4-5-.7 0-1.5.1-2.3.7C23 2.5 21.4 2 20 2c-1 0-2 .3-2.6.8l-.6-.9A4 4 0 0014 1z", fill: "#000", "fill-rule": "nonzero" } })])]), t("div", { staticClass: "text-center", staticStyle: { "max-width": "22ch" }, domProps: { innerHTML: e._s(e.$t("emptyBlockPlaceholderLarge")) } })]) : e._e(), t(e.isEditView ? "div" : "simplebar", { tag: "component", staticClass: "w-full h-full" }, [t("WithDimensions", { attrs: { "provide-device": !0 }, on: { width: function(a) {
|
|
6577
6529
|
e.parentSize.width = a;
|
|
6578
6530
|
} }, scopedSlots: e._u([{ key: "default", fn: function({ width: a, height: n }) {
|
|
6579
6531
|
var s, o;
|
|
@@ -6597,39 +6549,39 @@ var xn = function() {
|
|
|
6597
6549
|
return e.onBlockMove(p, r);
|
|
6598
6550
|
}, "toggle-visible": function(p) {
|
|
6599
6551
|
return e.onBlockToggleVisible(l, p);
|
|
6600
|
-
} } }, [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:
|
|
6601
|
-
}), 1) : e._e(), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ isProLike: l }) {
|
|
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: T }) => e.setFormValue({ key: p, value: C, options: T }), "on-remove": ({ key: p }) => e.removeFormValue(p), "on-mount": (p) => e.onAddBlockMount(l.nodeId, p) } })], 1)], 1);
|
|
6553
|
+
}), 1) : e._e(), e.canShowBanner ? t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ isProLike: l }) {
|
|
6602
6554
|
return [!e.isEditView && !l ? t("LogoBanner", { attrs: { position: "sticky" } }) : e._e()];
|
|
6603
|
-
} }], null, !0) })], 1);
|
|
6555
|
+
} }], null, !0) }) : e._e()], 1);
|
|
6604
6556
|
} }]) })], 1)], 1)], 1), t("DocumentDrawer", { key: "settingsDrawer", attrs: { id: "settingsDrawer", open: e.drawerState.showRight, fixed: !0, position: "right" }, on: { "update:open": function(a) {
|
|
6605
6557
|
return e.$set(e.drawerState, "showRight", a);
|
|
6606
6558
|
} } }, [t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
|
|
6607
|
-
},
|
|
6559
|
+
}, Cn = [function() {
|
|
6608
6560
|
var i = this, e = i._self._c;
|
|
6609
6561
|
return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
|
|
6610
|
-
}],
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6562
|
+
}], vn = /* @__PURE__ */ c(
|
|
6563
|
+
fn,
|
|
6564
|
+
gn,
|
|
6565
|
+
Cn,
|
|
6614
6566
|
!1,
|
|
6615
6567
|
null,
|
|
6616
|
-
"
|
|
6568
|
+
"e54004e2",
|
|
6617
6569
|
null,
|
|
6618
6570
|
null
|
|
6619
6571
|
);
|
|
6620
|
-
const
|
|
6572
|
+
const yn = vn.exports, V = k.observable({
|
|
6621
6573
|
canEdit: !1,
|
|
6622
6574
|
isForm: !0,
|
|
6623
6575
|
setFormValue: null
|
|
6624
|
-
}),
|
|
6576
|
+
}), xn = {
|
|
6625
6577
|
name: "DocumentForm",
|
|
6626
6578
|
components: {
|
|
6627
|
-
DocumentFormContainer:
|
|
6628
|
-
IsPremium:
|
|
6629
|
-
IsPremiumPreStep:
|
|
6630
|
-
DocumentSend:
|
|
6579
|
+
DocumentFormContainer: yn,
|
|
6580
|
+
IsPremium: Q,
|
|
6581
|
+
IsPremiumPreStep: I,
|
|
6582
|
+
DocumentSend: Zi
|
|
6631
6583
|
},
|
|
6632
|
-
mixins: [
|
|
6584
|
+
mixins: [lt({ currentElement: null }), rt],
|
|
6633
6585
|
props: {
|
|
6634
6586
|
document: {
|
|
6635
6587
|
type: Object,
|
|
@@ -6670,9 +6622,13 @@ const bn = _n.exports, T = S.observable({
|
|
|
6670
6622
|
goBack: {
|
|
6671
6623
|
type: Function,
|
|
6672
6624
|
default: null
|
|
6625
|
+
},
|
|
6626
|
+
canShowBanner: {
|
|
6627
|
+
type: Boolean,
|
|
6628
|
+
default: !0
|
|
6673
6629
|
}
|
|
6674
6630
|
},
|
|
6675
|
-
provide: () => ({ viewSettings:
|
|
6631
|
+
provide: () => ({ viewSettings: V }),
|
|
6676
6632
|
data() {
|
|
6677
6633
|
return {
|
|
6678
6634
|
view: "edit",
|
|
@@ -6683,13 +6639,13 @@ const bn = _n.exports, T = S.observable({
|
|
|
6683
6639
|
canEdit: {
|
|
6684
6640
|
immediate: !0,
|
|
6685
6641
|
handler(i) {
|
|
6686
|
-
|
|
6642
|
+
V.canEdit = !!i;
|
|
6687
6643
|
}
|
|
6688
6644
|
}
|
|
6689
6645
|
},
|
|
6690
6646
|
computed: {
|
|
6691
6647
|
canDoActions() {
|
|
6692
|
-
return !!
|
|
6648
|
+
return !!u(this.document, "template.views.read.nodes", []).length;
|
|
6693
6649
|
},
|
|
6694
6650
|
canEdit() {
|
|
6695
6651
|
const { document: i } = this;
|
|
@@ -6697,7 +6653,7 @@ const bn = _n.exports, T = S.observable({
|
|
|
6697
6653
|
}
|
|
6698
6654
|
},
|
|
6699
6655
|
created() {
|
|
6700
|
-
this.setFormValue && (
|
|
6656
|
+
this.setFormValue && (V.setFormValue = this.setDocValue);
|
|
6701
6657
|
},
|
|
6702
6658
|
methods: {
|
|
6703
6659
|
isValid() {
|
|
@@ -6712,7 +6668,7 @@ const bn = _n.exports, T = S.observable({
|
|
|
6712
6668
|
},
|
|
6713
6669
|
async saveAsTemplate() {
|
|
6714
6670
|
this.document && this.$modal.show(
|
|
6715
|
-
|
|
6671
|
+
ae,
|
|
6716
6672
|
{
|
|
6717
6673
|
document: this.document,
|
|
6718
6674
|
onSaveTemplate: this.onSaveTemplate
|
|
@@ -6729,13 +6685,13 @@ const bn = _n.exports, T = S.observable({
|
|
|
6729
6685
|
}
|
|
6730
6686
|
}
|
|
6731
6687
|
};
|
|
6732
|
-
var
|
|
6688
|
+
var wn = function() {
|
|
6733
6689
|
var e = this, t = e._self._c;
|
|
6734
|
-
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 }, on: { "update:view": function(a) {
|
|
6690
|
+
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) {
|
|
6735
6691
|
e.view = a;
|
|
6736
6692
|
} } }, [t("template", { slot: "nav-right" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a }) {
|
|
6737
6693
|
return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
|
|
6738
|
-
return [t("div", { staticStyle: { flex: "1", display: "inline-flex", "justify-content": "flex-end" } }, [e._t("nav-right-action", function() {
|
|
6694
|
+
return [t("div", { key: e.canDoActions, staticStyle: { flex: "1", display: "inline-flex", "justify-content": "flex-end" } }, [e._t("nav-right-action", function() {
|
|
6739
6695
|
return [t("div", { staticClass: "buttons has-addons", staticStyle: { "white-space": "nowrap" } }, [t("CButton", { ref: "sendButton", staticClass: "d-nav-button position right", staticStyle: { "border-radius": "7px 0 0 7px", height: "36px", "padding-left": "11px", "padding-right": "10px", "font-size": "13px", "font-weight": "500" }, attrs: { disabled: !e.canDoActions, loading: e.isLoading, "data-onboarding": "send-button", size: "small", type: "secondary", thinner: "" }, on: { click: function(s) {
|
|
6740
6696
|
a || e.document.id ? e.openSendModal() : n({ callback: e.openSendModal });
|
|
6741
6697
|
} } }, [e._v(" " + e._s(e.$t("_common:reviewSend")) + " ")]), t("CDropdown", { attrs: { disabled: !e.canDoActions } }, [t("CButton", { staticClass: "d-nav-button position right", staticStyle: { "border-radius": "0px 7px 7px 0px", height: "36px", "border-left": "1px solid hsla(0, 0%, 100%, 0.35)", "font-size": "13px", "padding-left": "14px", "padding-right": "14px" }, attrs: { slot: "trigger", "icon-props": { size: 13, strokeWidth: 2.5 }, size: "small", type: "secondary", thinner: "", icon: "chevron-down" }, slot: "trigger" }), t("CDropdownItem", { attrs: { "icon-props": { stroke: "hsl(205, 100%, 50%)" }, "icon-left": "save" }, on: { click: function(s) {
|
|
@@ -6743,7 +6699,7 @@ var Ln = function() {
|
|
|
6743
6699
|
} } }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() })) + " ")]), t("CDropdownItem", { attrs: { disabled: e.isLoading, "icon-left": "template-color" }, on: { click: e.saveAsTemplate } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")])], 1)], 1)];
|
|
6744
6700
|
})], 2)];
|
|
6745
6701
|
} }], null, !0) })];
|
|
6746
|
-
} }], null, !1,
|
|
6702
|
+
} }], null, !1, 2694380453) })], 1)], 2), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
|
|
6747
6703
|
expiresAt: "data.expiresAt",
|
|
6748
6704
|
personalMessage: "data.personalMessage",
|
|
6749
6705
|
defaultAnswerMethod: "data.defaultAnswerMethod",
|
|
@@ -6751,18 +6707,18 @@ var Ln = function() {
|
|
|
6751
6707
|
reminders: "data.reminders",
|
|
6752
6708
|
name: "data.name"
|
|
6753
6709
|
}, "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();
|
|
6754
|
-
},
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6710
|
+
}, bn = [], _n = /* @__PURE__ */ c(
|
|
6711
|
+
xn,
|
|
6712
|
+
wn,
|
|
6713
|
+
bn,
|
|
6758
6714
|
!1,
|
|
6759
6715
|
null,
|
|
6760
6716
|
null,
|
|
6761
6717
|
null,
|
|
6762
6718
|
null
|
|
6763
6719
|
);
|
|
6764
|
-
const
|
|
6765
|
-
const
|
|
6720
|
+
const kn = _n.exports;
|
|
6721
|
+
const Ln = {
|
|
6766
6722
|
name: "ClientLinks",
|
|
6767
6723
|
props: {
|
|
6768
6724
|
id: {
|
|
@@ -6813,36 +6769,36 @@ const Dn = {
|
|
|
6813
6769
|
this.loadDocument({ id: this.id });
|
|
6814
6770
|
},
|
|
6815
6771
|
methods: {
|
|
6816
|
-
...
|
|
6817
|
-
loadDocument:
|
|
6772
|
+
...y({
|
|
6773
|
+
loadDocument: m.LOAD_DOCUMENT2
|
|
6818
6774
|
}),
|
|
6819
6775
|
copyToClipboard(i) {
|
|
6820
|
-
i.target.previousElementSibling.select(), document.execCommand("copy", !1),
|
|
6776
|
+
i.target.previousElementSibling.select(), document.execCommand("copy", !1), j("info", this.$t("copied"));
|
|
6821
6777
|
}
|
|
6822
6778
|
}
|
|
6823
6779
|
};
|
|
6824
|
-
var
|
|
6780
|
+
var $n = function() {
|
|
6825
6781
|
var e = this, t = e._self._c;
|
|
6826
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) {
|
|
6827
6783
|
return e.$emit("close");
|
|
6828
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) {
|
|
6829
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)])]);
|
|
6830
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)]);
|
|
6831
|
-
},
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6787
|
+
}, Sn = [], Tn = /* @__PURE__ */ c(
|
|
6788
|
+
Ln,
|
|
6789
|
+
$n,
|
|
6790
|
+
Sn,
|
|
6835
6791
|
!1,
|
|
6836
6792
|
null,
|
|
6837
6793
|
"791a9a8f",
|
|
6838
6794
|
null,
|
|
6839
6795
|
null
|
|
6840
6796
|
);
|
|
6841
|
-
const
|
|
6842
|
-
if (!
|
|
6797
|
+
const Dn = Tn.exports, Vn = Dn, Bn = ({ id: i }) => {
|
|
6798
|
+
if (!k.prototype.$modal)
|
|
6843
6799
|
throw Error("Open client modal requires plugin vue-js-modal");
|
|
6844
|
-
|
|
6845
|
-
|
|
6800
|
+
k.prototype.$modal.show(
|
|
6801
|
+
Vn,
|
|
6846
6802
|
{
|
|
6847
6803
|
id: i
|
|
6848
6804
|
},
|
|
@@ -6855,9 +6811,9 @@ const In = Bn.exports, Fn = In, Hn = ({ id: i }) => {
|
|
|
6855
6811
|
}
|
|
6856
6812
|
);
|
|
6857
6813
|
};
|
|
6858
|
-
const
|
|
6859
|
-
name: "
|
|
6860
|
-
mixins: [
|
|
6814
|
+
const Mn = {
|
|
6815
|
+
name: "DocumentPostSendStep",
|
|
6816
|
+
mixins: [L],
|
|
6861
6817
|
i18nOptions: {
|
|
6862
6818
|
namespaces: "PostDocumentSend",
|
|
6863
6819
|
messages: {
|
|
@@ -6892,7 +6848,7 @@ const An = {
|
|
|
6892
6848
|
return this.mq === "sm" ? "100%" : "auto";
|
|
6893
6849
|
},
|
|
6894
6850
|
usesManualDelivery() {
|
|
6895
|
-
const i =
|
|
6851
|
+
const i = H(this.document);
|
|
6896
6852
|
return !i.sms && !i.email;
|
|
6897
6853
|
}
|
|
6898
6854
|
},
|
|
@@ -6901,18 +6857,18 @@ const An = {
|
|
|
6901
6857
|
(i = this.document) != null && i.senderClient ? await this.senderAnswer() : await this.onSend();
|
|
6902
6858
|
},
|
|
6903
6859
|
methods: {
|
|
6904
|
-
...
|
|
6905
|
-
updateDocument:
|
|
6906
|
-
answerDocument:
|
|
6907
|
-
sendDocument:
|
|
6860
|
+
...y({
|
|
6861
|
+
updateDocument: m.DO_UPDATE_DOCUMENT2,
|
|
6862
|
+
answerDocument: m.ANSWER_OWN_DOCUMENT2,
|
|
6863
|
+
sendDocument: m.DO_SEND_DOCUMENT2
|
|
6908
6864
|
}),
|
|
6909
6865
|
async handleDocumentLinks() {
|
|
6910
|
-
const { id: i } = this.document, e =
|
|
6866
|
+
const { id: i } = this.document, e = H(this.document), t = !e.sms && !e.email;
|
|
6911
6867
|
t && (await this.updateDocument({
|
|
6912
6868
|
id: i,
|
|
6913
6869
|
body: { status: "sent" },
|
|
6914
6870
|
showMessage: !1
|
|
6915
|
-
}),
|
|
6871
|
+
}), Bn({ id: i })), t || setTimeout(() => this.close(), 2e3);
|
|
6916
6872
|
},
|
|
6917
6873
|
async onSend() {
|
|
6918
6874
|
typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
|
|
@@ -6931,7 +6887,7 @@ const An = {
|
|
|
6931
6887
|
body: { isAccepted: !0 },
|
|
6932
6888
|
checksum: a
|
|
6933
6889
|
}), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
|
|
6934
|
-
|
|
6890
|
+
ht,
|
|
6935
6891
|
{
|
|
6936
6892
|
_document: this.document,
|
|
6937
6893
|
fullScreen: this.modalHeight === "100%",
|
|
@@ -6975,23 +6931,24 @@ const An = {
|
|
|
6975
6931
|
}
|
|
6976
6932
|
}
|
|
6977
6933
|
};
|
|
6978
|
-
var
|
|
6934
|
+
var In = function() {
|
|
6979
6935
|
var e = this, t = e._self._c;
|
|
6980
6936
|
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)]);
|
|
6981
|
-
},
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6937
|
+
}, Fn = [], Hn = /* @__PURE__ */ c(
|
|
6938
|
+
Mn,
|
|
6939
|
+
In,
|
|
6940
|
+
Fn,
|
|
6985
6941
|
!1,
|
|
6986
6942
|
null,
|
|
6987
|
-
"
|
|
6943
|
+
"673cd86f",
|
|
6988
6944
|
null,
|
|
6989
6945
|
null
|
|
6990
6946
|
);
|
|
6991
|
-
const
|
|
6992
|
-
|
|
6993
|
-
const
|
|
6947
|
+
const An = Hn.exports;
|
|
6948
|
+
k.use(ot);
|
|
6949
|
+
const Pn = {
|
|
6994
6950
|
name: "DocForm",
|
|
6951
|
+
mixins: [Ge(["closeFunc", "beforeSave", "beforeSend"])],
|
|
6995
6952
|
i18nOptions: {
|
|
6996
6953
|
namespaces: "widgetDocForm",
|
|
6997
6954
|
messages: {
|
|
@@ -7004,9 +6961,9 @@ const On = {
|
|
|
7004
6961
|
}
|
|
7005
6962
|
},
|
|
7006
6963
|
components: {
|
|
7007
|
-
TemplateSelector:
|
|
7008
|
-
|
|
7009
|
-
PostSend:
|
|
6964
|
+
TemplateSelector: w2,
|
|
6965
|
+
DocumentForm: kn,
|
|
6966
|
+
PostSend: An
|
|
7010
6967
|
},
|
|
7011
6968
|
props: {
|
|
7012
6969
|
isNew: {
|
|
@@ -7027,7 +6984,7 @@ const On = {
|
|
|
7027
6984
|
};
|
|
7028
6985
|
},
|
|
7029
6986
|
computed: {
|
|
7030
|
-
...
|
|
6987
|
+
...Ue({
|
|
7031
6988
|
company: "application/company",
|
|
7032
6989
|
feature: "application/feature",
|
|
7033
6990
|
can: "application/can",
|
|
@@ -7056,19 +7013,19 @@ const On = {
|
|
|
7056
7013
|
(!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
|
|
7057
7014
|
},
|
|
7058
7015
|
methods: {
|
|
7059
|
-
...
|
|
7060
|
-
setFormValue:
|
|
7061
|
-
removeFormValue:
|
|
7062
|
-
removeFormKeyValue:
|
|
7063
|
-
loadDocumentForm:
|
|
7064
|
-
duplicateDocumentForm:
|
|
7065
|
-
saveDocument:
|
|
7066
|
-
loadCompanyUser:
|
|
7016
|
+
...We({
|
|
7017
|
+
setFormValue: m.SET_FORM_VALUE,
|
|
7018
|
+
removeFormValue: m.REMOVE_FORM_VALUE,
|
|
7019
|
+
removeFormKeyValue: m.REMOVE_FORM_KEY_VALUE,
|
|
7020
|
+
loadDocumentForm: m.LOAD_DOCUMENT2_FORM,
|
|
7021
|
+
duplicateDocumentForm: m.LOAD_DUPLICATE_DOCUMENT2_FORM,
|
|
7022
|
+
saveDocument: m.SAVE_DYNDOC_FORM,
|
|
7023
|
+
loadCompanyUser: m.LOAD_COMPANY_USER
|
|
7067
7024
|
}),
|
|
7068
7025
|
async initDoc() {
|
|
7069
7026
|
if (!this.rawDoc)
|
|
7070
7027
|
throw new Error("Missing initiated form document");
|
|
7071
|
-
this.document = new
|
|
7028
|
+
this.document = new N({
|
|
7072
7029
|
data: this.rawDoc,
|
|
7073
7030
|
can: this.can,
|
|
7074
7031
|
getters: this.$store.getters,
|
|
@@ -7077,7 +7034,7 @@ const On = {
|
|
|
7077
7034
|
},
|
|
7078
7035
|
async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
|
|
7079
7036
|
var n;
|
|
7080
|
-
const a =
|
|
7037
|
+
const a = z1({ ...this.rawDoc }, [
|
|
7081
7038
|
"__tempId",
|
|
7082
7039
|
"externalReferences",
|
|
7083
7040
|
"clients",
|
|
@@ -7088,7 +7045,7 @@ const On = {
|
|
|
7088
7045
|
_formData: a
|
|
7089
7046
|
}) : await this.loadDocumentForm({
|
|
7090
7047
|
templateId: i,
|
|
7091
|
-
formData: t ?
|
|
7048
|
+
formData: t ? qe(t, a) : null,
|
|
7092
7049
|
_formData: a
|
|
7093
7050
|
}), (n = a == null ? void 0 : a.data) != null && n.name && this.setDocValue({ key: "data.name", value: a.data.name }), await this.initDoc(), this.view = "editor";
|
|
7094
7051
|
},
|
|
@@ -7102,31 +7059,37 @@ const On = {
|
|
|
7102
7059
|
return this.removeFormKeyValue(`document2.${i}`);
|
|
7103
7060
|
},
|
|
7104
7061
|
async onSaveDocument({ doSend: i = !1 } = {}) {
|
|
7062
|
+
typeof this.beforeSave == "function" && await this.beforeSave(), i && typeof this.beforeSend == "function" && await this.beforeSend();
|
|
7105
7063
|
const e = await this.saveDocument({ doSend: i }), t = this.docById(e);
|
|
7106
7064
|
i && (t != null && t.senderClient) ? (this.document = t, this.view = "postSend") : this.close();
|
|
7107
7065
|
},
|
|
7108
7066
|
close() {
|
|
7109
|
-
|
|
7067
|
+
if (this.closeFunc)
|
|
7068
|
+
this.closeFunc();
|
|
7069
|
+
else
|
|
7070
|
+
throw new Error(
|
|
7071
|
+
"[DocForm] closeFunc is missing from route params. Make sure to set it from ui"
|
|
7072
|
+
);
|
|
7110
7073
|
},
|
|
7111
7074
|
goBack() {
|
|
7112
7075
|
this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
|
|
7113
7076
|
}
|
|
7114
7077
|
}
|
|
7115
7078
|
};
|
|
7116
|
-
var
|
|
7079
|
+
var En = function() {
|
|
7117
7080
|
var e = this, t = e._self._c;
|
|
7118
|
-
return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col
|
|
7119
|
-
},
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
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
|
+
}, zn = [], Zn = /* @__PURE__ */ c(
|
|
7083
|
+
Pn,
|
|
7084
|
+
En,
|
|
7085
|
+
zn,
|
|
7123
7086
|
!1,
|
|
7124
7087
|
null,
|
|
7125
7088
|
null,
|
|
7126
7089
|
null,
|
|
7127
7090
|
null
|
|
7128
7091
|
);
|
|
7129
|
-
const
|
|
7092
|
+
const xs = Zn.exports;
|
|
7130
7093
|
export {
|
|
7131
|
-
|
|
7094
|
+
xs as default
|
|
7132
7095
|
};
|