@cling-se/widget 0.15.2 → 0.15.5
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/README.md +43 -43
- package/dist/{AddClientCallout-CSxN7XFh.js → AddClientCallout-CrZF5j7A.js} +15 -13
- package/dist/{AnswerModal-DEwMlsT8.js → AnswerModal-C3r9vyki.js} +71 -71
- package/dist/{AttachmentItem-R7YMKqQ2.js → AttachmentItem-BVXrxCnv.js} +20 -13
- package/dist/{BaseDatePicker-Bd1maWgF.js → BaseDatePicker-DxL2l3QC.js} +561 -557
- package/dist/{BaseUpload-C9Jd1JBo.js → BaseUpload-B7259IaQ.js} +3 -3
- package/dist/{BlockMedia-CUCZYVdZ.js → BlockMedia-BSKtZMwa.js} +2 -2
- package/dist/{CCallout-_k7FPbsE.js → CCallout-BNvM6gNJ.js} +4 -5
- package/dist/{CCurrencyDropdown-DejfeYVY.js → CCurrencyDropdown-xmqmb8gW.js} +24 -20
- package/dist/{CDropdownItem-b6ZzOnv-.js → CDropdownItem-DiLisSei.js} +139 -37
- package/dist/{CFormField-BjGICSv5.js → CFormField-DcZVdj3a.js} +3 -4
- package/dist/{CPhoneFormat-Bf2fgYtr.js → CPhoneFormat-BeYxRN0i.js} +1 -1
- package/dist/CPhoneInput-UzZkxbC6.js +138 -0
- package/dist/{CPriceInput-myrETXfz.js → CPriceInput-C2y_3PM7.js} +20 -16
- package/dist/CSelect-BmP1UsQA.js +91 -0
- package/dist/CSkeleton-BNbft-NE.js +55 -0
- package/dist/ClientAutocomplete-BnredOme.js +438 -0
- package/dist/{ClientModal-DSmFJ9bu.js → ClientModal-DNcf4APF.js} +92 -51
- package/dist/{ColorPicker-B1MJicqo.js → ColorPicker-BupC4jvI.js} +2 -2
- package/dist/{CompanyModal-BXs3aAYm.js → CompanyModal-Bh8mEHE1.js} +25 -19
- package/dist/{ContentWrapper-BKWZy4Bp.js → ContentWrapper-Bs3nrJda.js} +63 -55
- package/dist/CoverBlockSettings-WYZsCdky.js +659 -0
- package/dist/{DocAnswer-CaoTYUNh.js → DocAnswer--FfsnnTB.js} +2 -2
- package/dist/{DocDetails-C9EEpNg2.js → DocDetails-Ce7bj-qO.js} +43 -39
- package/dist/{DocForm-Dww8Ust9.js → DocForm-FR_Vlq_C.js} +801 -755
- package/dist/{DocFormSend-DKAqaT50.js → DocFormSend-DcSv3JNg.js} +18 -15
- package/dist/{DocLinks-DFUO03dk.js → DocLinks-Bvhc62aJ.js} +2 -2
- package/dist/{DocModalBase-QZosNhiK.js → DocModalBase-DkfUBRi3.js} +2 -2
- package/dist/{DocPrint--T278pDE.js → DocPrint-BrKY6rOy.js} +3 -3
- package/dist/{DocReceipt-CPg45_I7.js → DocReceipt-oGrM6t_k.js} +29 -22
- package/dist/{DocSendReminder-DQAaiUrs.js → DocSendReminder-veEC_yHK.js} +19 -16
- package/dist/{DocTextEditor-CM1f8eMD.js → DocTextEditor-CNRwxPEx.js} +72 -70
- package/dist/{DocTimeline-Ce0OZgGP.js → DocTimeline-e2Xf_QZ7.js} +38 -34
- package/dist/{DocumentClient-DHU-Rg3r.js → DocumentClient-Dx4Uyxkh.js} +5 -5
- package/dist/{DocumentLayout-GYCBw2F_.js → DocumentLayout-DmjmsTcx.js} +1506 -1538
- package/dist/{DocumentLogotype-Cilc0ElE.js → DocumentLogotype-ddYHM9wn.js} +25 -20
- package/dist/{DocumentVoided-BH8pkv85.js → DocumentVoided-WCk7XuxH.js} +1 -1
- package/dist/{EmbedInput-lMSVQSey.js → EmbedInput-CMueXdFs.js} +25 -21
- package/dist/{EmbedSettings-D65Y2AZL.js → EmbedSettings-BRuLCWr0.js} +13 -11
- package/dist/{ErrorCallout-BBNHzuhf.js → ErrorCallout-CDtZceLU.js} +6 -6
- package/dist/{FilePreviewModal-iPIuaIor.js → FilePreviewModal-BzAUuY58.js} +3 -3
- package/dist/Flag-DkJgyDQK.js +46 -0
- package/dist/{HeaderSettings-WKUIBCfF.js → HeaderSettings-CoKK5Mbt.js} +159 -110
- package/dist/{ImageSelectModal-BTMFM3o9.js → ImageSelectModal-De64vGSr.js} +15 -13
- package/dist/{ImageUploadWrapper-BaLjUZF5.js → ImageUploadWrapper-CE6KTze0.js} +3 -3
- package/dist/{Index-DS1PwlDq.js → Index-50KxppUS.js} +4 -4
- package/dist/{Index-DJeZiYxr.js → Index-B7vVIRFn.js} +7 -7
- package/dist/{Index-ivhPuQy5.js → Index-BUQ75xOU.js} +6 -6
- package/dist/{Index-BUEXgHEE.js → Index-BVKCCkQY.js} +57 -50
- package/dist/{Index-BBTn35Kj.js → Index-BiGT3iEX.js} +21 -17
- package/dist/{Index-B-UWz1IM.js → Index-BoDKKVvL.js} +4 -4
- package/dist/{Index-DrSgVUyo.js → Index-BotY9nbP.js} +2 -2
- package/dist/{Index-B-YqdbQX.js → Index-BwaJW9CY.js} +3 -3
- package/dist/{Index-BepvyGqo.js → Index-ByqCyUgx.js} +9 -9
- package/dist/{Index-Bsv15ctO.js → Index-C7pge7E9.js} +23 -21
- package/dist/{Index-CEaZgZqg.js → Index-CBRJ-AZi.js} +2 -2
- package/dist/{Index-GrrsUUz1.js → Index-CFQMtx5w.js} +5 -5
- package/dist/{Index-CtQo0b8t.js → Index-CJKyHWiO.js} +15 -15
- package/dist/{Index-Dv1fkHWQ.js → Index-CK_5l1kP.js} +2 -2
- package/dist/{Index-BVt3pj58.js → Index-CLc_11Bc.js} +276 -232
- package/dist/{Index-cPIqnY80.js → Index-CTokKHJA.js} +5 -5
- package/dist/Index-Cf45UGbc.js +28 -0
- package/dist/{Index-B51tj7qY.js → Index-CfLPq-yA.js} +5 -5
- package/dist/{Index-B_ta4yT_.js → Index-Ci7y3O0G.js} +7 -7
- package/dist/{Index-ZKkQzVOj.js → Index-CmV8oF4Q.js} +4 -4
- package/dist/{Index-C6tGNKAk.js → Index-CoRuYEYW.js} +5 -5
- package/dist/Index-CtKNyVUB.js +56 -0
- package/dist/{Index-rL3fz1Ew.js → Index-DCf6_Zd2.js} +2 -2
- package/dist/{Index-CEHhYmLe.js → Index-DGdlZzVO.js} +7 -7
- package/dist/{Index-B5XaBVyJ.js → Index-DbKB8sTh.js} +18 -12
- package/dist/{Index-9PMrT3eB.js → Index-DgBOq2MJ.js} +3 -3
- package/dist/{Index-BBOJRRgx.js → Index-DvNxOHHu.js} +6 -6
- package/dist/{Index-DS7xellB.js → Index-M2Mce2_m.js} +124 -123
- package/dist/{Index-2PGn8Pnv.js → Index-QMkjG7hk.js} +4 -4
- package/dist/{Index-oKRUWCcJ.js → Index-QmX5pv-V.js} +17 -15
- package/dist/{Index-0aZtDWyk.js → Index-h5xDFYM9.js} +4 -4
- package/dist/{Index-CtZMlBfK.js → Index-hkGYloih.js} +5 -5
- package/dist/{Index-DK3b6Cv-.js → Index-q3gLm4b1.js} +6 -6
- package/dist/{Index-BQ3kapHk.js → Index-sqI1TF7Z.js} +2 -2
- package/dist/{InputToggleRow-CJF0vwk3.js → InputToggleRow-DLFIMIdx.js} +2 -2
- package/dist/{ManualPopover-CEF7LMpn.js → ManualPopover-Cf8DotlW.js} +13 -11
- package/dist/{MediaWrapper-CM6vWCoZ.js → MediaWrapper-BgWmA3kS.js} +3 -3
- package/dist/{NotBindingText-Cee9yA0M.js → NotBindingText-DhsHxvkX.js} +2 -2
- package/dist/{PackageGroup-CFXogKPM.js → PackageGroup-EbOSxv69.js} +26 -20
- package/dist/PdfTerms-im6uTd5E.js +31 -0
- package/dist/{PdfViewer-Cd0Jm2VB.js → PdfViewer-DY0rcZjo.js} +22 -22
- package/dist/{PlainHtml-CucWAcOU.js → PlainHtml-o031pfp-.js} +1 -1
- package/dist/{PriceHeader-DdMZUaq5.js → PriceHeader-NdFa0Sqs.js} +15 -15
- package/dist/{SearchApi-knNqVduO.js → SearchApi-Bw5E9IPj.js} +2 -2
- package/dist/SendForm-BDY5VDkS.js +1023 -0
- package/dist/{Setup-7HIAWuiK.js → Setup-BsYqPmOm.js} +1 -1
- package/dist/{SmartList-cSmGbybV.js → SmartList-CP2wHig-.js} +1 -1
- package/dist/{TermsSettings-CAB-08E3.js → TermsSettings-CUlSayCJ.js} +20 -13
- package/dist/{ThemeColorRow-DxcMvBGq.js → ThemeColorRow-D3fav4Sl.js} +14 -12
- package/dist/ToggleBinding-B715OVl2.js +42 -0
- package/dist/{UploadModal-CvoSMExA.js → UploadModal-THDJ-UNp.js} +6 -6
- package/dist/{VideoPlayerInput-X5baUH3q.js → VideoPlayerInput-Cm3KoRnR.js} +15 -11
- package/dist/{VideoPlayerSettings-DsIvpufB.js → VideoPlayerSettings-BFAjczuw.js} +3 -3
- package/dist/VideoSelectModal-CzO8EMg9.js +104 -0
- package/dist/{answerDocumentMixin-B8HB1WAX.js → answerDocumentMixin-D12xJRhx.js} +3 -3
- package/dist/{debounce-B2lqFJg2.js → debounce-DLiv1sQX.js} +16 -16
- package/dist/{focusDrawerMixin-B2djM7ql.js → focusDrawerMixin-khaScuSu.js} +1 -1
- package/dist/{formDrawerState-CchCpZRc.js → formDrawerState-CJ6kjaD_.js} +1 -1
- package/dist/{formValidationMixin-Dz9Mabvi.js → formValidationMixin-Bri1WflH.js} +1 -1
- package/dist/{index-Dk6sZCYv.js → index-B0Zu30kF.js} +2 -2
- package/dist/{index-twnaU4rC.js → index-C1Ngv-v3.js} +1 -1
- package/dist/{index-BCrDgR_4.js → index-CMT3coT-.js} +785 -2001
- package/dist/{index-H1Kx9sJM.js → index-DJOUQneq.js} +42 -38
- package/dist/{index-BaGtbWcA.js → index-DLa3QER7.js} +18 -17
- package/dist/{index-kV9OZ5y0.js → index-Dygy9XlG.js} +1 -1
- package/dist/index.es.js +10 -10
- package/dist/index.umd.js +179 -175
- package/dist/{main-CerYX9PA.js → main-U22_wtg0.js} +13008 -11358
- package/dist/{mapFormMixin-Hj1Y7rVt.js → mapFormMixin-BZf4RJIE.js} +1 -1
- package/dist/omit-RBXmF_Fo.js +31 -0
- package/dist/{publicSenderState-t7Gu53cA.js → publicSenderState-DKuvxj4_.js} +1 -1
- package/dist/regions-BdZt9Srn.js +1250 -0
- package/dist/simplebar.min-Bnrne5ZK.js +71 -0
- package/dist/style.css +2 -2
- package/dist/{throttle-B8hI9bkk.js → throttle-Fkuqk26x.js} +2 -2
- package/dist/{tinycolor-BaK26Ky-.js → tinycolor-BZ8wGctU.js} +1 -1
- package/dist/{tippy.esm-BuWRbveV.js → tippy.esm-BJe845c1.js} +246 -240
- package/dist/{utils-Pmm0DT8o.js → utils-BOWVR87A.js} +1 -1
- package/dist/{vuedraggable.umd-Besz6Tlv.js → vuedraggable.umd-CJL8TWxZ.js} +1 -1
- package/package.json +2 -11
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-DyXQEfcS.js +0 -78
- package/dist/CoverBlockSettings-7Ivt9zN0.js +0 -275
- package/dist/Flag-CwnrA4SV.js +0 -114
- package/dist/Index-B0pgh8nR.js +0 -21
- package/dist/Index-Ccx9wHcb.js +0 -52
- package/dist/PdfTerms-ChtDfzne.js +0 -36
- package/dist/ToggleBinding-CTTYdrkp.js +0 -38
- package/dist/VideoSelectModal-VMcSU3bM.js +0 -100
- package/dist/formComponentsInstall-CdjgjI6y.js +0 -2495
- package/dist/omit-DGBewD2h.js +0 -31
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { o as
|
|
3
|
-
import { w } from "./CDropdownItem-
|
|
4
|
-
import {
|
|
1
|
+
import re from "./AnswerModal-C3r9vyki.js";
|
|
2
|
+
import { o as ce } from "./index-B0Zu30kF.js";
|
|
3
|
+
import { w, C as P, a as E } from "./CDropdownItem-DiLisSei.js";
|
|
4
|
+
import { b0 as H, g as h, n as d, c as f, b as u, d as de, b1 as pe, S as ue, D as W, i as T, aC as me, aT as x, ae as p, W as z, h as B, $ as m, b2 as he, b3 as fe, b4 as ge, b5 as Ce, b6 as ve, b7 as ye, V as q, aV as N, aW as j, I as U, b8 as I, aX as xe, b9 as we, t as K, ba as be, k as ke, l as Y, bb as _e, bc as Le, u as $e, bd as Se, y as Te, x as y, N as De, be as Ve, C as Q, bf as Be, bg as Me, U as J, bh as Ie, bi as Fe, aY as He, bj as Ae, bk as Pe, bl as Ee, a9 as ze, bm as Ze, m as Oe, a as Ue, bn as Re } from "./main-U22_wtg0.js";
|
|
5
5
|
import { a as b, m as C } from "./vuex.esm-DKGl8mcw.js";
|
|
6
|
-
import { s as _ } from "./
|
|
7
|
-
import { l as
|
|
8
|
-
import { F as
|
|
9
|
-
import { m as D } from "./mapFormMixin-
|
|
10
|
-
import {
|
|
11
|
-
import { d as
|
|
12
|
-
import {
|
|
13
|
-
import { C as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { s as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
6
|
+
import { s as _ } from "./simplebar.min-Bnrne5ZK.js";
|
|
7
|
+
import { l as Ge, g as We, W as qe, b as Ne, a as je, D as Ke } from "./DocumentLayout-DmjmsTcx.js";
|
|
8
|
+
import { F as X, d as Ye } from "./tippy.esm-BJe845c1.js";
|
|
9
|
+
import { m as D } from "./mapFormMixin-BZf4RJIE.js";
|
|
10
|
+
import { a as Qe } from "./ClientAutocomplete-BnredOme.js";
|
|
11
|
+
import { d as Z, t as Je } from "./debounce-DLiv1sQX.js";
|
|
12
|
+
import { d as Xe } from "./vuedraggable.umd-CJL8TWxZ.js";
|
|
13
|
+
import { C as et, I as L, a as $, s as tt } from "./index-CMT3coT-.js";
|
|
14
|
+
import { C as O } from "./CFormField-DcZVdj3a.js";
|
|
15
|
+
import { S as it } from "./SmartList-CP2wHig-.js";
|
|
16
|
+
import { o as at, _ as nt } from "./omit-RBXmF_Fo.js";
|
|
17
|
+
import { v as A } from "./index-C1Ngv-v3.js";
|
|
18
|
+
import { t as st } from "./tinycolor-BZ8wGctU.js";
|
|
19
|
+
import { s as v } from "./formDrawerState-CJ6kjaD_.js";
|
|
20
|
+
import { s as ot } from "./dom-CJxkno7i.js";
|
|
21
|
+
import { S as lt } from "./SendForm-BDY5VDkS.js";
|
|
22
|
+
import { f as rt } from "./formValidationMixin-Bri1WflH.js";
|
|
23
|
+
import { C as ct } from "./CCallout-BNvM6gNJ.js";
|
|
24
|
+
import { C as dt } from "./CSkeleton-BNbft-NE.js";
|
|
25
|
+
import { B as pt } from "./BlockMedia-BSKtZMwa.js";
|
|
26
|
+
const ut = {
|
|
24
27
|
name: "DocumentPostSendStep",
|
|
25
28
|
mixins: [w],
|
|
26
29
|
i18nOptions: {
|
|
@@ -77,7 +80,7 @@ const rt = {
|
|
|
77
80
|
id: i,
|
|
78
81
|
body: { status: "sent" },
|
|
79
82
|
showMessage: !1
|
|
80
|
-
}),
|
|
83
|
+
}), ce({ id: i })), t || setTimeout(() => this.close(), 2e3);
|
|
81
84
|
},
|
|
82
85
|
async onSend() {
|
|
83
86
|
typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
|
|
@@ -96,7 +99,7 @@ const rt = {
|
|
|
96
99
|
body: { isAccepted: !0 },
|
|
97
100
|
checksum: a
|
|
98
101
|
}), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
|
|
99
|
-
|
|
102
|
+
re,
|
|
100
103
|
{
|
|
101
104
|
_document: this.document,
|
|
102
105
|
fullScreen: this.modalHeight === "100%",
|
|
@@ -105,12 +108,12 @@ const rt = {
|
|
|
105
108
|
// actions intended mirror public requests made in accept/bankId modals
|
|
106
109
|
// defined here in order to keep it DRY and avoiding account module actions defined in answer modals
|
|
107
110
|
senderActions: {
|
|
108
|
-
answer: (async function({ body:
|
|
111
|
+
answer: (async function({ body: s }) {
|
|
109
112
|
var o;
|
|
110
113
|
return this.answerDocument({
|
|
111
114
|
id: i,
|
|
112
115
|
publicId: e.publicDocumentId,
|
|
113
|
-
body:
|
|
116
|
+
body: s,
|
|
114
117
|
checksum: (o = this.document._doc) == null ? void 0 : o.checksum
|
|
115
118
|
});
|
|
116
119
|
}).bind(this),
|
|
@@ -129,8 +132,8 @@ const rt = {
|
|
|
129
132
|
},
|
|
130
133
|
{
|
|
131
134
|
cancel: () => {
|
|
132
|
-
var
|
|
133
|
-
return (
|
|
135
|
+
var n;
|
|
136
|
+
return (n = this.onCancelFunc) == null ? void 0 : n.call(this);
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
139
|
), !0);
|
|
@@ -140,18 +143,18 @@ const rt = {
|
|
|
140
143
|
}
|
|
141
144
|
}
|
|
142
145
|
};
|
|
143
|
-
var
|
|
146
|
+
var mt = function() {
|
|
144
147
|
var e = this, t = e._self._c;
|
|
145
148
|
return t("div", { staticClass: "font-inter root" }, [t("div", { staticClass: "container" }, [t("div", { staticClass: "icon-wrapper" }, [t("CIcon", { 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)]);
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
149
|
+
}, ht = [], ft = /* @__PURE__ */ d(
|
|
150
|
+
ut,
|
|
151
|
+
mt,
|
|
152
|
+
ht,
|
|
150
153
|
!1,
|
|
151
154
|
null,
|
|
152
|
-
"
|
|
155
|
+
"206151b7"
|
|
153
156
|
);
|
|
154
|
-
const
|
|
157
|
+
const gt = ft.exports, Ct = {
|
|
155
158
|
name: "Drawer",
|
|
156
159
|
props: {
|
|
157
160
|
value: {
|
|
@@ -194,7 +197,7 @@ const ut = pt.exports, mt = {
|
|
|
194
197
|
}
|
|
195
198
|
}
|
|
196
199
|
};
|
|
197
|
-
var
|
|
200
|
+
var vt = function() {
|
|
198
201
|
var e = this, t = e._self._c;
|
|
199
202
|
return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
|
|
200
203
|
zIndex: e.zIndex
|
|
@@ -210,19 +213,19 @@ var ht = function() {
|
|
|
210
213
|
boxShadow: e.boxShadow,
|
|
211
214
|
...e.contentStyle
|
|
212
215
|
} }, [e._t("default")], 2)]) : e._e()])], 1);
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
216
|
+
}, yt = [], xt = /* @__PURE__ */ d(
|
|
217
|
+
Ct,
|
|
218
|
+
vt,
|
|
219
|
+
yt,
|
|
217
220
|
!1,
|
|
218
221
|
null,
|
|
219
|
-
"
|
|
222
|
+
"694ad3af"
|
|
220
223
|
);
|
|
221
|
-
const
|
|
224
|
+
const ee = xt.exports, wt = {
|
|
222
225
|
name: "DocumentDrawer",
|
|
223
226
|
components: {
|
|
224
227
|
simplebar: _,
|
|
225
|
-
Drawer:
|
|
228
|
+
Drawer: ee
|
|
226
229
|
},
|
|
227
230
|
props: {
|
|
228
231
|
position: {
|
|
@@ -244,7 +247,7 @@ const Q = gt.exports, Ct = {
|
|
|
244
247
|
}
|
|
245
248
|
}
|
|
246
249
|
};
|
|
247
|
-
var
|
|
250
|
+
var bt = function() {
|
|
248
251
|
var e = this, t = e._self._c;
|
|
249
252
|
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: {
|
|
250
253
|
"is-sticky": !e.fixed
|
|
@@ -256,29 +259,29 @@ var vt = function() {
|
|
|
256
259
|
padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
|
|
257
260
|
...e.fixedStyle
|
|
258
261
|
} }, [e._t("default")], 2)])])]) : e._e()], 1);
|
|
259
|
-
},
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
262
|
+
}, kt = [], _t = /* @__PURE__ */ d(
|
|
263
|
+
wt,
|
|
264
|
+
bt,
|
|
265
|
+
kt,
|
|
263
266
|
!1,
|
|
264
267
|
null,
|
|
265
|
-
"
|
|
268
|
+
"f53cf4f0"
|
|
266
269
|
);
|
|
267
|
-
const
|
|
270
|
+
const Lt = _t.exports, $t = {
|
|
268
271
|
name: "DocumentFormNav"
|
|
269
272
|
};
|
|
270
|
-
var
|
|
273
|
+
var St = function() {
|
|
271
274
|
var e = this, t = e._self._c;
|
|
272
275
|
return t("div", { staticClass: "DocumentFormNav fixed left-0 right-0 top-0 z-[98] bg-gray-200 px-2 py-2 shadow-lg md:px-6" }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "inline-flex flex-grow items-center" }, [e._t("left")], 2), t("div", { staticClass: "inline-flex flex-auto items-center justify-center" }, [e._t("center")], 2), t("div", { staticClass: "inline-flex flex-grow items-center justify-end" }, [e._t("right")], 2)])]);
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
276
|
+
}, Tt = [], Dt = /* @__PURE__ */ d(
|
|
277
|
+
$t,
|
|
278
|
+
St,
|
|
279
|
+
Tt,
|
|
277
280
|
!1,
|
|
278
281
|
null,
|
|
279
282
|
null
|
|
280
283
|
);
|
|
281
|
-
const
|
|
284
|
+
const Vt = Dt.exports, Bt = {
|
|
282
285
|
name: "DocumentFormViewRadio",
|
|
283
286
|
props: {
|
|
284
287
|
value: {
|
|
@@ -291,7 +294,7 @@ const $t = Lt.exports, St = {
|
|
|
291
294
|
}
|
|
292
295
|
}
|
|
293
296
|
};
|
|
294
|
-
var
|
|
297
|
+
var Mt = function() {
|
|
295
298
|
var e = this, t = e._self._c;
|
|
296
299
|
return t("div", { staticClass: "inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 text-sm text-white" }, [t("div", { staticClass: "inline-flex select-none items-center justify-center rounded-md px-1 font-semibold leading-none text-gray-700 transition duration-150 ease-linear", class: {
|
|
297
300
|
"m-0 bg-white px-3 py-[1em] text-zinc-900 drop-shadow-md": e.value === "edit"
|
|
@@ -302,15 +305,15 @@ var Tt = function() {
|
|
|
302
305
|
}, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
|
|
303
306
|
e.value === "edit" && e.$emit("input", "preview");
|
|
304
307
|
} } }, [e.small ? t("CIcon", { attrs: { type: "eye", size: "16" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
308
|
+
}, It = [], Ft = /* @__PURE__ */ d(
|
|
309
|
+
Bt,
|
|
310
|
+
Mt,
|
|
311
|
+
It,
|
|
309
312
|
!1,
|
|
310
313
|
null,
|
|
311
314
|
null
|
|
312
315
|
);
|
|
313
|
-
const
|
|
316
|
+
const Ht = Ft.exports, At = {
|
|
314
317
|
name: "BlockControlButtons",
|
|
315
318
|
i18nOptions: {
|
|
316
319
|
namespace: "blockControlButtons",
|
|
@@ -342,7 +345,7 @@ const Bt = Vt.exports, Mt = {
|
|
|
342
345
|
}
|
|
343
346
|
}
|
|
344
347
|
};
|
|
345
|
-
var
|
|
348
|
+
var Pt = function() {
|
|
346
349
|
var e = this, t = e._self._c;
|
|
347
350
|
return t("div", { staticClass: "control-root flex gap-2" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
348
351
|
return e.$emit("toggle-visible", !e.isVisible);
|
|
@@ -353,18 +356,18 @@ var It = function() {
|
|
|
353
356
|
} } }, [t("CIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
|
|
354
357
|
return e.$emit("remove");
|
|
355
358
|
} } }, [t("CIcon", { attrs: { type: "x", size: "16" } })], 1)]) : e._e()], 2);
|
|
356
|
-
},
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
359
|
+
}, Et = [], zt = /* @__PURE__ */ d(
|
|
360
|
+
At,
|
|
361
|
+
Pt,
|
|
362
|
+
Et,
|
|
360
363
|
!1,
|
|
361
364
|
null,
|
|
362
|
-
"
|
|
365
|
+
"5cce694c"
|
|
363
366
|
);
|
|
364
|
-
const
|
|
367
|
+
const Zt = zt.exports, Ot = {
|
|
365
368
|
name: "DynamicBlock",
|
|
366
369
|
components: {
|
|
367
|
-
BlockControlButtons:
|
|
370
|
+
BlockControlButtons: Zt
|
|
368
371
|
},
|
|
369
372
|
provide() {
|
|
370
373
|
return {
|
|
@@ -425,7 +428,7 @@ const At = Ht.exports, Pt = {
|
|
|
425
428
|
}
|
|
426
429
|
}
|
|
427
430
|
};
|
|
428
|
-
var
|
|
431
|
+
var Ut = function() {
|
|
429
432
|
var e = this, t = e._self._c;
|
|
430
433
|
return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
|
|
431
434
|
{
|
|
@@ -448,15 +451,15 @@ var Et = function() {
|
|
|
448
451
|
}, remove: function(a) {
|
|
449
452
|
return e.$emit("remove");
|
|
450
453
|
} } }, [e.showEditButton ? t("CButton", { staticClass: "document-block__edit-button", attrs: { round: "", size: "small", thinner: "", "icon-right": "colored-dots" }, on: { click: e.onEdit } }, [e._v(" " + e._s(e.$t("_common:edit").capitalize()) + " ")]) : e._e()], 1) : e._e()], 1)]);
|
|
451
|
-
},
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
454
|
+
}, Rt = [], Gt = /* @__PURE__ */ d(
|
|
455
|
+
Ot,
|
|
456
|
+
Ut,
|
|
457
|
+
Rt,
|
|
455
458
|
!1,
|
|
456
459
|
null,
|
|
457
|
-
"
|
|
460
|
+
"129778b8"
|
|
458
461
|
);
|
|
459
|
-
const
|
|
462
|
+
const Wt = Gt.exports, qt = {
|
|
460
463
|
name: "LogoBanner",
|
|
461
464
|
props: {
|
|
462
465
|
position: {
|
|
@@ -474,20 +477,20 @@ const Ot = Zt.exports, Ut = {
|
|
|
474
477
|
}
|
|
475
478
|
}
|
|
476
479
|
};
|
|
477
|
-
var
|
|
480
|
+
var Nt = function() {
|
|
478
481
|
var e = this, t = e._self._c;
|
|
479
482
|
return t("div", { staticClass: "pointer-events-none bottom-0 left-0 right-0 z-50 flex justify-end px-[10px] pb-[10px]", class: e.position }, [t("a", { staticClass: "pointer-events-auto inline-flex h-8 items-center rounded-md border border-white/30 bg-black/80 pl-1.5 pr-2", attrs: { href: `https://${e.$t(
|
|
480
483
|
"_common:brand.domain"
|
|
481
484
|
)}?utm_source=document&utm_medium=logo-banner`, target: "_blank" } }, [t("div", { staticClass: "mr-2 h-5 w-5 overflow-hidden rounded bg-white" }, [t("img", { staticClass: "h-full w-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")) + " ")])])]);
|
|
482
|
-
},
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
485
|
+
}, jt = [], Kt = /* @__PURE__ */ d(
|
|
486
|
+
qt,
|
|
487
|
+
Nt,
|
|
488
|
+
jt,
|
|
486
489
|
!1,
|
|
487
490
|
null,
|
|
488
491
|
null
|
|
489
492
|
);
|
|
490
|
-
const
|
|
493
|
+
const Yt = Kt.exports, Qt = {
|
|
491
494
|
name: "Draggable",
|
|
492
495
|
data() {
|
|
493
496
|
return {
|
|
@@ -508,7 +511,7 @@ const qt = Wt.exports, Nt = {
|
|
|
508
511
|
this.elementWidth = e.width, this.elementHeight = e.height;
|
|
509
512
|
const t = i.type === "touchstart", a = t ? i.touches[0] : i;
|
|
510
513
|
this.clientX = a.clientX, this.clientY = a.clientY;
|
|
511
|
-
const
|
|
514
|
+
const n = t ? "touchmove" : "mousemove", s = t ? "touchend" : "mouseup", o = (r) => {
|
|
512
515
|
t || r.preventDefault();
|
|
513
516
|
const c = t ? r.touches[0] : r;
|
|
514
517
|
this.movementX = this.clientX - c.clientX, this.movementY = this.clientY - c.clientY, this.clientX = c.clientX, this.clientY = c.clientY, this.$el.style.top = `${Math.max(
|
|
@@ -519,9 +522,9 @@ const qt = Wt.exports, Nt = {
|
|
|
519
522
|
this.windowWidth - this.elementWidth
|
|
520
523
|
)}px`;
|
|
521
524
|
}, l = () => {
|
|
522
|
-
document.removeEventListener(
|
|
525
|
+
document.removeEventListener(n, o), document.removeEventListener(s, l);
|
|
523
526
|
};
|
|
524
|
-
document.addEventListener(
|
|
527
|
+
document.addEventListener(n, o), document.addEventListener(s, l);
|
|
525
528
|
}
|
|
526
529
|
},
|
|
527
530
|
render() {
|
|
@@ -529,18 +532,18 @@ const qt = Wt.exports, Nt = {
|
|
|
529
532
|
dragMousedown: this.onDragMouseDown
|
|
530
533
|
});
|
|
531
534
|
}
|
|
532
|
-
},
|
|
533
|
-
var
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
535
|
+
}, Jt = null, Xt = null;
|
|
536
|
+
var e1 = /* @__PURE__ */ d(
|
|
537
|
+
Qt,
|
|
538
|
+
Jt,
|
|
539
|
+
Xt,
|
|
537
540
|
!1,
|
|
538
541
|
null,
|
|
539
542
|
null
|
|
540
543
|
);
|
|
541
|
-
const
|
|
544
|
+
const t1 = e1.exports, i1 = {
|
|
542
545
|
components: {
|
|
543
|
-
Draggable:
|
|
546
|
+
Draggable: t1
|
|
544
547
|
},
|
|
545
548
|
props: {
|
|
546
549
|
offset: {
|
|
@@ -553,33 +556,33 @@ const Qt = Yt.exports, Jt = {
|
|
|
553
556
|
}
|
|
554
557
|
}
|
|
555
558
|
};
|
|
556
|
-
var
|
|
559
|
+
var a1 = function() {
|
|
557
560
|
var e = this, t = e._self._c;
|
|
558
561
|
return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
|
|
559
562
|
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: {
|
|
560
563
|
top: "70px",
|
|
561
564
|
left: `${e.offset + 15}px`
|
|
562
|
-
} }, [t("div", { staticStyle: { position: "relative", height: "100%", width: "100%" } }, [t("CButton", { staticStyle: { position: "absolute", right: "0", top: "0" }, attrs: { icon: "x", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { click: function(
|
|
565
|
+
} }, [t("div", { staticStyle: { position: "relative", height: "100%", width: "100%" } }, [t("CButton", { staticStyle: { position: "absolute", right: "0", top: "0" }, attrs: { icon: "x", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { click: function(n) {
|
|
563
566
|
return e.$emit("close");
|
|
564
567
|
} } }), 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, touchstart: 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)])];
|
|
565
568
|
} }], null, !0) })], 1);
|
|
566
|
-
},
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
569
|
+
}, n1 = [], s1 = /* @__PURE__ */ d(
|
|
570
|
+
i1,
|
|
571
|
+
a1,
|
|
572
|
+
n1,
|
|
570
573
|
!1,
|
|
571
574
|
null,
|
|
572
|
-
"
|
|
575
|
+
"cd750940"
|
|
573
576
|
);
|
|
574
|
-
const
|
|
577
|
+
const te = s1.exports, o1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(o1), l1 = {
|
|
575
578
|
i18nOptions: {
|
|
576
579
|
namespaces: "common",
|
|
577
580
|
keyPrefix: "designLabels"
|
|
578
581
|
},
|
|
579
582
|
name: "Design",
|
|
580
583
|
components: {
|
|
581
|
-
FormInputRow:
|
|
582
|
-
DragWindow:
|
|
584
|
+
FormInputRow: X,
|
|
585
|
+
DragWindow: te
|
|
583
586
|
},
|
|
584
587
|
mixins: [D(["css"], { useEmit: !1, setFnName: "set" })],
|
|
585
588
|
props: {
|
|
@@ -658,8 +661,8 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
658
661
|
weight: t
|
|
659
662
|
}
|
|
660
663
|
},
|
|
661
|
-
onInput: ({ family: a, weight:
|
|
662
|
-
this.update(i, a),
|
|
664
|
+
onInput: ({ family: a, weight: n, options: s = [] }) => {
|
|
665
|
+
this.update(i, a), Ge(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
|
|
663
666
|
}
|
|
664
667
|
}
|
|
665
668
|
]
|
|
@@ -677,7 +680,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
677
680
|
value: t || "",
|
|
678
681
|
type: "number",
|
|
679
682
|
minValue: 0,
|
|
680
|
-
onInput: (
|
|
683
|
+
onInput: (n) => this.update(i, `${n}${a}`)
|
|
681
684
|
},
|
|
682
685
|
select: {
|
|
683
686
|
value: t || "px",
|
|
@@ -695,7 +698,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
695
698
|
{ value: 72, label: 72 },
|
|
696
699
|
{ value: 96, label: 96 }
|
|
697
700
|
],
|
|
698
|
-
onInput: (
|
|
701
|
+
onInput: (n) => this.update(i, `${n}px`)
|
|
699
702
|
}
|
|
700
703
|
}
|
|
701
704
|
},
|
|
@@ -707,7 +710,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
707
710
|
max: 100,
|
|
708
711
|
value: t
|
|
709
712
|
},
|
|
710
|
-
onInput: (
|
|
713
|
+
onInput: (n) => this.update(i, `${n}${a}`)
|
|
711
714
|
}
|
|
712
715
|
]
|
|
713
716
|
};
|
|
@@ -877,7 +880,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
877
880
|
value: t || "",
|
|
878
881
|
type: "number",
|
|
879
882
|
minValue: 0,
|
|
880
|
-
onInput: (
|
|
883
|
+
onInput: (n) => this.update(i, `${n}${a}`)
|
|
881
884
|
},
|
|
882
885
|
select: {
|
|
883
886
|
value: t || "px",
|
|
@@ -887,7 +890,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
887
890
|
{ value: 900, label: 900 },
|
|
888
891
|
{ value: 1080, label: 1080 }
|
|
889
892
|
],
|
|
890
|
-
onInput: (
|
|
893
|
+
onInput: (n) => this.update(i, `${n}px`)
|
|
891
894
|
}
|
|
892
895
|
}
|
|
893
896
|
},
|
|
@@ -900,7 +903,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
900
903
|
step: 10,
|
|
901
904
|
value: t
|
|
902
905
|
},
|
|
903
|
-
onInput: (
|
|
906
|
+
onInput: (n) => this.update(i, `${n}${a}`)
|
|
904
907
|
}
|
|
905
908
|
]
|
|
906
909
|
};
|
|
@@ -946,7 +949,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
946
949
|
};
|
|
947
950
|
},
|
|
948
951
|
border: ([i, e, t]) => {
|
|
949
|
-
const a = i.value === "solid", [,
|
|
952
|
+
const a = i.value === "solid", [, n] = k(e.value), s = [
|
|
950
953
|
{
|
|
951
954
|
label: this.$t("border"),
|
|
952
955
|
inputs: [
|
|
@@ -965,7 +968,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
965
968
|
{
|
|
966
969
|
component: "input",
|
|
967
970
|
props: {
|
|
968
|
-
value:
|
|
971
|
+
value: n,
|
|
969
972
|
type: "number",
|
|
970
973
|
minValue: 0
|
|
971
974
|
}
|
|
@@ -973,15 +976,15 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
973
976
|
{
|
|
974
977
|
component: "step",
|
|
975
978
|
props: {
|
|
976
|
-
value:
|
|
979
|
+
value: n
|
|
977
980
|
},
|
|
978
981
|
onIncrease: () => this.update(
|
|
979
982
|
e.key,
|
|
980
|
-
`${parseFloat(
|
|
983
|
+
`${parseFloat(n || 0) + 1}px`
|
|
981
984
|
),
|
|
982
985
|
onDecrease: () => this.update(
|
|
983
986
|
e.key,
|
|
984
|
-
`${parseFloat(
|
|
987
|
+
`${parseFloat(n || 0) - 1}px`
|
|
985
988
|
)
|
|
986
989
|
}
|
|
987
990
|
]
|
|
@@ -1006,7 +1009,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
1006
1009
|
value: a ? `${e.value} ${t.value}` : "none",
|
|
1007
1010
|
width: "220px",
|
|
1008
1011
|
popup: {
|
|
1009
|
-
inputs:
|
|
1012
|
+
inputs: s
|
|
1010
1013
|
}
|
|
1011
1014
|
}
|
|
1012
1015
|
}
|
|
@@ -1023,8 +1026,8 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
1023
1026
|
h2: e,
|
|
1024
1027
|
h3: t,
|
|
1025
1028
|
blockquote: a,
|
|
1026
|
-
p:
|
|
1027
|
-
'[data-typography="title"]':
|
|
1029
|
+
p: n,
|
|
1030
|
+
'[data-typography="title"]': s
|
|
1028
1031
|
} = this.css || {};
|
|
1029
1032
|
return [
|
|
1030
1033
|
{
|
|
@@ -1038,7 +1041,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
1038
1041
|
// calc(2.5 * var(--rem))
|
|
1039
1042
|
fontWeight: 800,
|
|
1040
1043
|
// 900
|
|
1041
|
-
...
|
|
1044
|
+
...s
|
|
1042
1045
|
}
|
|
1043
1046
|
},
|
|
1044
1047
|
{
|
|
@@ -1107,7 +1110,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
1107
1110
|
style: {
|
|
1108
1111
|
fontFamily: "Inter",
|
|
1109
1112
|
fontSize: "16px",
|
|
1110
|
-
...
|
|
1113
|
+
...n
|
|
1111
1114
|
}
|
|
1112
1115
|
}
|
|
1113
1116
|
];
|
|
@@ -1115,9 +1118,9 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
1115
1118
|
activeItemOptions() {
|
|
1116
1119
|
if (!this.activeItem)
|
|
1117
1120
|
return [];
|
|
1118
|
-
const { selector: i, category: e, style: t = {} } = this.activeItem, a = u(this.css, i) || {},
|
|
1119
|
-
return this[e].map(({ option:
|
|
1120
|
-
const r = this.definitionOptions[
|
|
1121
|
+
const { selector: i, category: e, style: t = {} } = this.activeItem, a = u(this.css, i) || {}, n = (s) => a[s] || t[s];
|
|
1122
|
+
return this[e].map(({ option: s, key: o }, l) => {
|
|
1123
|
+
const r = this.definitionOptions[s], c = Array.isArray(o) ? o.map((g) => ({ key: g, value: n(g) })) : { key: o, value: n(o) };
|
|
1121
1124
|
return r(c, l);
|
|
1122
1125
|
});
|
|
1123
1126
|
}
|
|
@@ -1125,7 +1128,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
1125
1128
|
watch: {
|
|
1126
1129
|
async activeItem(i) {
|
|
1127
1130
|
const e = u(i, "style.fontFamily");
|
|
1128
|
-
e && (this.fontWeightOptions = await
|
|
1131
|
+
e && (this.fontWeightOptions = await We(e));
|
|
1129
1132
|
}
|
|
1130
1133
|
},
|
|
1131
1134
|
methods: {
|
|
@@ -1137,10 +1140,10 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
|
|
|
1137
1140
|
}
|
|
1138
1141
|
}
|
|
1139
1142
|
};
|
|
1140
|
-
var
|
|
1143
|
+
var r1 = function() {
|
|
1141
1144
|
var e = this, t = e._self._c;
|
|
1142
1145
|
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) {
|
|
1143
|
-
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(
|
|
1146
|
+
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
|
|
1144
1147
|
e.activeItem = a;
|
|
1145
1148
|
} } }, [t("div", { style: {
|
|
1146
1149
|
fontSize: a.fontSize,
|
|
@@ -1150,21 +1153,21 @@ var s1 = function() {
|
|
|
1150
1153
|
lineHeight: 1
|
|
1151
1154
|
} }, [e._v(" " + e._s(a.label) + " ")]), t("div", { staticStyle: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, [e._v(" " + e._s(a.style.fontFamily) + " " + e._s(a.style.fontSize) + " ")])]);
|
|
1152
1155
|
})], 2), t("div", { staticStyle: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(0.5 * var(--rem)) calc(1 * var(--rem))" } }), t("div", { staticStyle: { padding: "calc(0.75 * var(--rem))" } }, [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("section_plural")) + " ")]), e._l(e.sections, function(a) {
|
|
1153
|
-
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(
|
|
1156
|
+
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
|
|
1154
1157
|
e.activeItem = a;
|
|
1155
1158
|
} } }, [t("div", { staticStyle: { "font-size": "1.075em", "font-weight": "500" } }, [e._v(" " + e._s(a.label) + " ")]), t("div", { staticStyle: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, [e._v(" #000000 ")])]);
|
|
1156
|
-
})], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a,
|
|
1157
|
-
return t("FormInputRow", { key:
|
|
1159
|
+
})], 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) {
|
|
1160
|
+
return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
|
|
1158
1161
|
}), 1) : e._e()], 1);
|
|
1159
|
-
},
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1162
|
+
}, c1 = [], d1 = /* @__PURE__ */ d(
|
|
1163
|
+
l1,
|
|
1164
|
+
r1,
|
|
1165
|
+
c1,
|
|
1163
1166
|
!1,
|
|
1164
1167
|
null,
|
|
1165
|
-
"
|
|
1168
|
+
"0f6ab0af"
|
|
1166
1169
|
);
|
|
1167
|
-
const
|
|
1170
|
+
const p1 = d1.exports, u1 = {
|
|
1168
1171
|
i18nOptions: {
|
|
1169
1172
|
namespaces: "DocSettings",
|
|
1170
1173
|
messages: {
|
|
@@ -1252,8 +1255,8 @@ const l1 = o1.exports, r1 = {
|
|
|
1252
1255
|
},
|
|
1253
1256
|
name: "DocumentGeneralSettings",
|
|
1254
1257
|
components: {
|
|
1255
|
-
FormInputRow:
|
|
1256
|
-
DragWindow:
|
|
1258
|
+
FormInputRow: X,
|
|
1259
|
+
DragWindow: te
|
|
1257
1260
|
},
|
|
1258
1261
|
mixins: [
|
|
1259
1262
|
D([
|
|
@@ -1294,7 +1297,7 @@ const l1 = o1.exports, r1 = {
|
|
|
1294
1297
|
vatTypes() {
|
|
1295
1298
|
var e;
|
|
1296
1299
|
const i = ["vat"];
|
|
1297
|
-
return ((e =
|
|
1300
|
+
return ((e = de[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
|
|
1298
1301
|
},
|
|
1299
1302
|
options() {
|
|
1300
1303
|
return [
|
|
@@ -1325,7 +1328,7 @@ const l1 = o1.exports, r1 = {
|
|
|
1325
1328
|
component: "select",
|
|
1326
1329
|
props: {
|
|
1327
1330
|
value: this.language,
|
|
1328
|
-
options:
|
|
1331
|
+
options: pe.map((i) => ({
|
|
1329
1332
|
value: i,
|
|
1330
1333
|
label: this.$t(`iso:language.${i}`)
|
|
1331
1334
|
})).sort((i, e) => i.label.localeCompare(e.label))
|
|
@@ -1498,24 +1501,24 @@ const l1 = o1.exports, r1 = {
|
|
|
1498
1501
|
}
|
|
1499
1502
|
}
|
|
1500
1503
|
};
|
|
1501
|
-
var
|
|
1504
|
+
var m1 = function() {
|
|
1502
1505
|
var e = this, t = e._self._c;
|
|
1503
|
-
return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a,
|
|
1504
|
-
return t("FormInputRow", { key:
|
|
1506
|
+
return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
|
|
1507
|
+
return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
|
|
1505
1508
|
}), e.showDragWindow ? t("DragWindow", { attrs: { offset: e.offset, title: e.$t("pricing.title") }, on: { close: function(a) {
|
|
1506
1509
|
e.showDragWindow = !1;
|
|
1507
|
-
} } }, [e._l(e.priceOptions, function(a,
|
|
1508
|
-
return [a.type === "divider" ? t("div", { key:
|
|
1510
|
+
} } }, [e._l(e.priceOptions, function(a, n) {
|
|
1511
|
+
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 } })];
|
|
1509
1512
|
})], 2) : e._e()], 2);
|
|
1510
|
-
},
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1513
|
+
}, h1 = [], f1 = /* @__PURE__ */ d(
|
|
1514
|
+
u1,
|
|
1515
|
+
m1,
|
|
1516
|
+
h1,
|
|
1514
1517
|
!1,
|
|
1515
1518
|
null,
|
|
1516
|
-
"
|
|
1519
|
+
"76507ccf"
|
|
1517
1520
|
);
|
|
1518
|
-
const
|
|
1521
|
+
const g1 = f1.exports, C1 = {
|
|
1519
1522
|
i18nOptions: {
|
|
1520
1523
|
messages: {
|
|
1521
1524
|
en: {
|
|
@@ -1558,8 +1561,11 @@ const u1 = p1.exports, m1 = {
|
|
|
1558
1561
|
},
|
|
1559
1562
|
name: "ExtensionTab",
|
|
1560
1563
|
components: {
|
|
1561
|
-
draggable:
|
|
1562
|
-
Spinner:
|
|
1564
|
+
draggable: Xe,
|
|
1565
|
+
Spinner: ue,
|
|
1566
|
+
CAutocomplete: Qe,
|
|
1567
|
+
CDropdown: P,
|
|
1568
|
+
CDropdownItem: E
|
|
1563
1569
|
},
|
|
1564
1570
|
mixins: [D(["externalReferences", "clients", "articles"])],
|
|
1565
1571
|
data() {
|
|
@@ -1613,7 +1619,7 @@ const u1 = p1.exports, m1 = {
|
|
|
1613
1619
|
}
|
|
1614
1620
|
},
|
|
1615
1621
|
methods: {
|
|
1616
|
-
priceFormat:
|
|
1622
|
+
priceFormat: W,
|
|
1617
1623
|
async _search(i) {
|
|
1618
1624
|
try {
|
|
1619
1625
|
this.isSearching = !0;
|
|
@@ -1633,7 +1639,7 @@ const u1 = p1.exports, m1 = {
|
|
|
1633
1639
|
this.isSearching = !1;
|
|
1634
1640
|
}
|
|
1635
1641
|
},
|
|
1636
|
-
search:
|
|
1642
|
+
search: Z(async function(e) {
|
|
1637
1643
|
await this._search(e);
|
|
1638
1644
|
}, 750),
|
|
1639
1645
|
useSearchResult(i) {
|
|
@@ -1660,11 +1666,11 @@ const u1 = p1.exports, m1 = {
|
|
|
1660
1666
|
);
|
|
1661
1667
|
if (!e)
|
|
1662
1668
|
return;
|
|
1663
|
-
const { service: t, type: a, typeId:
|
|
1669
|
+
const { service: t, type: a, typeId: n } = e, { data: s } = await T.getExternalReferenceDetails(
|
|
1664
1670
|
t,
|
|
1665
|
-
{ type: a, typeId:
|
|
1671
|
+
{ type: a, typeId: n }
|
|
1666
1672
|
);
|
|
1667
|
-
i !== this.dealType ? this.typeDetails = { ...
|
|
1673
|
+
i !== this.dealType ? this.typeDetails = { ...s, type: i } : this.dealDetails = s;
|
|
1668
1674
|
} catch {
|
|
1669
1675
|
i !== this.dealType ? this.typeDetails = null : this.dealDetails = null;
|
|
1670
1676
|
} finally {
|
|
@@ -1673,25 +1679,25 @@ const u1 = p1.exports, m1 = {
|
|
|
1673
1679
|
},
|
|
1674
1680
|
removeReference(i = this.dealType) {
|
|
1675
1681
|
const e = this.externalReferences.find(
|
|
1676
|
-
(
|
|
1682
|
+
(s) => s.service === this.activeCrm && s.type === i
|
|
1677
1683
|
);
|
|
1678
1684
|
if (!e)
|
|
1679
1685
|
return;
|
|
1680
|
-
const { service: t, type: a, typeId:
|
|
1681
|
-
!t || !a || !
|
|
1682
|
-
(
|
|
1686
|
+
const { service: t, type: a, typeId: n } = e;
|
|
1687
|
+
!t || !a || !n || (this.externalReferences = this.externalReferences.filter(
|
|
1688
|
+
(s) => !(s.service === t && s.type === a && s.typeId === n)
|
|
1683
1689
|
), i !== this.dealType ? this.typeDetails = null : this.dealDetails = null);
|
|
1684
1690
|
},
|
|
1685
1691
|
async suggestClients() {
|
|
1686
|
-
var
|
|
1692
|
+
var n;
|
|
1687
1693
|
const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await T.suggestClients(i, {
|
|
1688
1694
|
type: e,
|
|
1689
1695
|
typeId: t
|
|
1690
1696
|
});
|
|
1691
1697
|
if (Array.isArray(a) && a.length) {
|
|
1692
|
-
const
|
|
1693
|
-
...
|
|
1694
|
-
...
|
|
1698
|
+
const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
|
|
1699
|
+
...me(),
|
|
1700
|
+
...s && { answerMethod: s },
|
|
1695
1701
|
...l
|
|
1696
1702
|
}));
|
|
1697
1703
|
this.clients = [...this.clients || [], ...o];
|
|
@@ -1704,8 +1710,8 @@ const u1 = p1.exports, m1 = {
|
|
|
1704
1710
|
});
|
|
1705
1711
|
},
|
|
1706
1712
|
addArticle(i) {
|
|
1707
|
-
var a,
|
|
1708
|
-
const [e] = ((
|
|
1713
|
+
var a, n;
|
|
1714
|
+
const [e] = ((n = (a = this._document) == null ? void 0 : a.packageGroups) == null ? void 0 : n.packages) || [];
|
|
1709
1715
|
if (!(e != null && e.packageId))
|
|
1710
1716
|
return;
|
|
1711
1717
|
const t = x({
|
|
@@ -1720,13 +1726,15 @@ const u1 = p1.exports, m1 = {
|
|
|
1720
1726
|
}
|
|
1721
1727
|
}
|
|
1722
1728
|
};
|
|
1723
|
-
var
|
|
1729
|
+
var v1 = function() {
|
|
1724
1730
|
var e = this, t = e._self._c;
|
|
1725
|
-
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" }
|
|
1726
|
-
return t("
|
|
1731
|
+
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" }, scopedSlots: e._u([{ key: "trigger", fn: function() {
|
|
1732
|
+
return [t("CButton", { attrs: { size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" } })];
|
|
1733
|
+
}, proxy: !0 }], null, !1, 1198894702) }, e._l(e.allAuthenticatedCRMs, function(a) {
|
|
1734
|
+
return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
|
|
1727
1735
|
e.activeCrm = a;
|
|
1728
1736
|
} } }, [e._v(" " + e._s(a.capitalize()) + " ")]);
|
|
1729
|
-
})
|
|
1737
|
+
}), 1) : e._e(), e.isLoading && !e.dealDetails ? t("div", { staticClass: "flex w-full items-center justify-center", staticStyle: { "padding-top": "calc(2 * var(--rem))" } }, [t("Spinner", { attrs: { size: "24", color: "grey" } })], 1) : e.activeCrm ? [t("div", { staticStyle: { padding: "0 calc(0.5 * var(--rem)) calc(2 * var(--rem))" } }, [t("div", { staticStyle: { "font-weight": "500", "font-size": "16px" } }, [e._v(" " + e._s(e.activeCrm.capitalize()) + " ")]), e.typeDetails ? t("div", [t("div", { staticClass: "x-hint" }, [t("div", { staticClass: "flex w-full" }, [t("div", { domProps: { textContent: e._s(
|
|
1730
1738
|
e.$t("referenceTo", {
|
|
1731
1739
|
crm: e.activeCrm.capitalize(),
|
|
1732
1740
|
type: e.$t(`type.${e.typeDetails.type}`)
|
|
@@ -1744,10 +1752,12 @@ var h1 = function() {
|
|
|
1744
1752
|
}, select: function(a) {
|
|
1745
1753
|
return e.useSearchResult(a);
|
|
1746
1754
|
} }, scopedSlots: e._u([{ key: "default", fn: function({ option: a }) {
|
|
1747
|
-
return t("div", { staticStyle: { "line-height": "1.5" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(a.name))]), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "14px" } }, [e._v(" " + e._s(a.externalReference.type.capitalize()) + " " + e._s(a.externalReference.typeId) + " "), a.value && a.currency ? [e._v(" · " + e._s(e.priceFormat(a.value, { showZero: !1, currency: a.currency })) + " ")] : e._e()], 2)]);
|
|
1748
|
-
} }
|
|
1755
|
+
return [t("div", { staticStyle: { "line-height": "1.5" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(a.name))]), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "14px" } }, [e._v(" " + e._s(a.externalReference.type.capitalize()) + " " + e._s(a.externalReference.typeId) + " "), a.value && a.currency ? [e._v(" · " + e._s(e.priceFormat(a.value, { showZero: !1, currency: a.currency })) + " ")] : e._e()], 2)])];
|
|
1756
|
+
} }, { key: "empty", fn: function() {
|
|
1757
|
+
return [e._v(" " + e._s(e.$t("_common:noResults")) + " ")];
|
|
1758
|
+
}, proxy: !0 }]), model: { value: e.searchQuery, callback: function(a) {
|
|
1749
1759
|
e.searchQuery = a;
|
|
1750
|
-
}, expression: "searchQuery" } }
|
|
1760
|
+
}, expression: "searchQuery" } })], 1)], 2), e.showDealProducts ? t("div", [t("div", { staticStyle: { padding: "0 calc(0.5 * var(--rem)) calc(1 * var(--rem))" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("productsTitle")) + " "), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: "Use a product by drag & dropping a product to a package.", expression: `
|
|
1751
1761
|
'Use a product by drag & dropping a product to a package.'
|
|
1752
1762
|
` }], attrs: { type: "info", size: "13" } })], 1), t("div", { staticClass: "text-gray-600", domProps: { textContent: e._s(
|
|
1753
1763
|
e.$t("productsText", {
|
|
@@ -1759,19 +1769,19 @@ var h1 = function() {
|
|
|
1759
1769
|
pull: "clone",
|
|
1760
1770
|
put: !1
|
|
1761
1771
|
}, clone: e.cloneArticle } }, e._l(e.dealDetails.articles, function(a) {
|
|
1762
|
-
return t("div", { key: a._uniqueId, staticStyle: { padding: "calc(0.5 * var(--rem))", "line-height": "1", "margin-bottom": "calc(0.5 * var(--rem))", "box-shadow": "0 1px 3px rgb(0, 0, 0, 0.3)", background: "white", "border-radius": "3px", cursor: "grab", "user-select": "none" }, on: { click: function(
|
|
1772
|
+
return t("div", { key: a._uniqueId, staticStyle: { padding: "calc(0.5 * var(--rem))", "line-height": "1", "margin-bottom": "calc(0.5 * var(--rem))", "box-shadow": "0 1px 3px rgb(0, 0, 0, 0.3)", background: "white", "border-radius": "3px", cursor: "grab", "user-select": "none" }, on: { click: function(n) {
|
|
1763
1773
|
return e.addArticle(a);
|
|
1764
1774
|
} } }, [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)]);
|
|
1765
1775
|
}), 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("CIcon", { 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 w-full flex-col items-center justify-center text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("CIcon", { 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);
|
|
1766
|
-
},
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1776
|
+
}, y1 = [], x1 = /* @__PURE__ */ d(
|
|
1777
|
+
C1,
|
|
1778
|
+
v1,
|
|
1779
|
+
y1,
|
|
1770
1780
|
!1,
|
|
1771
1781
|
null,
|
|
1772
|
-
"
|
|
1782
|
+
"515490bd"
|
|
1773
1783
|
);
|
|
1774
|
-
const
|
|
1784
|
+
const w1 = x1.exports, b1 = {
|
|
1775
1785
|
name: "FieldsModal",
|
|
1776
1786
|
i18nOptions: {
|
|
1777
1787
|
namespaces: "FieldsModal",
|
|
@@ -1805,7 +1815,7 @@ const C1 = g1.exports, v1 = {
|
|
|
1805
1815
|
}
|
|
1806
1816
|
},
|
|
1807
1817
|
components: {
|
|
1808
|
-
CField:
|
|
1818
|
+
CField: O
|
|
1809
1819
|
},
|
|
1810
1820
|
props: {
|
|
1811
1821
|
document: {
|
|
@@ -1881,12 +1891,12 @@ const C1 = g1.exports, v1 = {
|
|
|
1881
1891
|
remove() {
|
|
1882
1892
|
if (!this.existingFieldId)
|
|
1883
1893
|
return;
|
|
1884
|
-
const i =
|
|
1894
|
+
const i = at(this.document.fields, [this.existingFieldId]);
|
|
1885
1895
|
this.set({ key: "data.fields", value: i }), this.$emit("close");
|
|
1886
1896
|
}
|
|
1887
1897
|
}
|
|
1888
1898
|
};
|
|
1889
|
-
var
|
|
1899
|
+
var k1 = function() {
|
|
1890
1900
|
var e = this, t = e._self._c;
|
|
1891
1901
|
return t("div", { staticClass: "font-inter flex w-full flex-col items-center bg-white text-center", 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) {
|
|
1892
1902
|
return a.preventDefault(), e.submit.apply(null, arguments);
|
|
@@ -1897,15 +1907,15 @@ var y1 = function() {
|
|
|
1897
1907
|
}, 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) {
|
|
1898
1908
|
e.$set(e.form, "value", a);
|
|
1899
1909
|
}, 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)]);
|
|
1900
|
-
},
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1910
|
+
}, _1 = [], L1 = /* @__PURE__ */ d(
|
|
1911
|
+
b1,
|
|
1912
|
+
k1,
|
|
1913
|
+
_1,
|
|
1904
1914
|
!1,
|
|
1905
1915
|
null,
|
|
1906
|
-
"
|
|
1916
|
+
"424477dd"
|
|
1907
1917
|
);
|
|
1908
|
-
const
|
|
1918
|
+
const $1 = L1.exports, S1 = {
|
|
1909
1919
|
i18nOptions: {
|
|
1910
1920
|
namespaces: "DocumentFormFields",
|
|
1911
1921
|
messages: {
|
|
@@ -1929,9 +1939,9 @@ const b1 = w1.exports, k1 = {
|
|
|
1929
1939
|
},
|
|
1930
1940
|
name: "DocumentFormFields",
|
|
1931
1941
|
components: {
|
|
1932
|
-
SmartList:
|
|
1933
|
-
CAccordion:
|
|
1934
|
-
CField:
|
|
1942
|
+
SmartList: it,
|
|
1943
|
+
CAccordion: et,
|
|
1944
|
+
CField: O
|
|
1935
1945
|
},
|
|
1936
1946
|
mixins: [D()],
|
|
1937
1947
|
props: {
|
|
@@ -1954,7 +1964,7 @@ const b1 = w1.exports, k1 = {
|
|
|
1954
1964
|
options() {
|
|
1955
1965
|
const { fields: i, usedFields: e } = this._document;
|
|
1956
1966
|
return Object.keys(i).map((t) => {
|
|
1957
|
-
const a = i[t], { service:
|
|
1967
|
+
const a = i[t], { service: n, inputDisabled: s, virtual: o = !1 } = a.meta || {}, l = this.crmService && n === this.crmService ? a.meta.service : null;
|
|
1958
1968
|
return {
|
|
1959
1969
|
...a,
|
|
1960
1970
|
id: t,
|
|
@@ -1962,7 +1972,7 @@ const b1 = w1.exports, k1 = {
|
|
|
1962
1972
|
onInput: (r) => this.updateValue(a.key, r),
|
|
1963
1973
|
usedCount: e[a.key] || 0,
|
|
1964
1974
|
crm: l,
|
|
1965
|
-
inputDisabled:
|
|
1975
|
+
inputDisabled: s || l,
|
|
1966
1976
|
virtual: o
|
|
1967
1977
|
};
|
|
1968
1978
|
});
|
|
@@ -1993,7 +2003,7 @@ const b1 = w1.exports, k1 = {
|
|
|
1993
2003
|
...a,
|
|
1994
2004
|
// Filter out previous service fields if switching connected crm
|
|
1995
2005
|
...Object.entries(((t = (e = this._document) == null ? void 0 : e.data) == null ? void 0 : t.fields) || {}).reduce(
|
|
1996
|
-
(
|
|
2006
|
+
(n, [s, o]) => o != null && o.meta.service && o.meta.service !== i ? n : { ...n, [s]: o },
|
|
1997
2007
|
{}
|
|
1998
2008
|
)
|
|
1999
2009
|
});
|
|
@@ -2007,7 +2017,7 @@ const b1 = w1.exports, k1 = {
|
|
|
2007
2017
|
},
|
|
2008
2018
|
openFieldModal({ existingFieldId: i }) {
|
|
2009
2019
|
this.$modal.show(
|
|
2010
|
-
|
|
2020
|
+
$1,
|
|
2011
2021
|
{
|
|
2012
2022
|
document: this._document,
|
|
2013
2023
|
set: this.set,
|
|
@@ -2026,7 +2036,7 @@ const b1 = w1.exports, k1 = {
|
|
|
2026
2036
|
);
|
|
2027
2037
|
},
|
|
2028
2038
|
onCopyField(i) {
|
|
2029
|
-
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() =>
|
|
2039
|
+
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => z("info", this.$t("_common:copyMessage"))).catch((e) => B(e));
|
|
2030
2040
|
},
|
|
2031
2041
|
filterMethod(i, e) {
|
|
2032
2042
|
return e.filter(
|
|
@@ -2039,22 +2049,22 @@ const b1 = w1.exports, k1 = {
|
|
|
2039
2049
|
}
|
|
2040
2050
|
}
|
|
2041
2051
|
};
|
|
2042
|
-
var
|
|
2052
|
+
var T1 = function() {
|
|
2043
2053
|
var e = this, t = e._self._c;
|
|
2044
2054
|
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) {
|
|
2045
2055
|
e.query = a;
|
|
2046
2056
|
}, 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 }) {
|
|
2047
|
-
return t("div",
|
|
2048
|
-
return t("div", { key:
|
|
2057
|
+
return [t("div", [a.length ? e._l(a, function(n, s) {
|
|
2058
|
+
return t("div", { key: s, staticClass: "field-parent flex w-full items-center" }, [t("div", { staticClass: "field-container", staticStyle: { position: "relative", flex: "1 1 auto" } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { label: " ", "label-position": "inside" } }, [t("span", { staticClass: "drag-label", attrs: { draggable: "" }, domProps: { textContent: e._s(n.label) }, on: { dragstart: (o) => e.onDragStart(o, n) } }), t("CInput", { staticStyle: { width: "100%" }, attrs: { value: n.value, disabled: n.inputDisabled, filled: "", size: "small" }, on: { blur: function(o) {
|
|
2049
2059
|
var l;
|
|
2050
|
-
return
|
|
2051
|
-
} } })], 1), t("div", { staticClass: "field-actions" }, [!
|
|
2052
|
-
return e.openFieldModal({ existingFieldId:
|
|
2060
|
+
return n.onInput(((l = o == null ? void 0 : o.target) == null ? void 0 : l.value) || "");
|
|
2061
|
+
} } })], 1), t("div", { staticClass: "field-actions" }, [!n.inputDisabled && !n.virtual ? t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary" }, on: { click: function(o) {
|
|
2062
|
+
return e.openFieldModal({ existingFieldId: n.id });
|
|
2053
2063
|
} } }) : e._e(), t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "copy", size: "small", type: "none", pattern: "secondary" }, on: { click: function(o) {
|
|
2054
|
-
return e.onCopyField(`{{${
|
|
2064
|
+
return e.onCopyField(`{{${n.key}}}`);
|
|
2055
2065
|
} } })], 1)], 1)]);
|
|
2056
|
-
}) : t("div", { staticStyle: { "text-align": "center" } }, [e._v(" " + e._s(e.$t("_common:noResults")) + " ")])], 2);
|
|
2057
|
-
} }], null, !1,
|
|
2066
|
+
}) : t("div", { staticStyle: { "text-align": "center" } }, [e._v(" " + e._s(e.$t("_common:noResults")) + " ")])], 2)];
|
|
2067
|
+
} }], null, !1, 4102404724) })], 1) : t("div", { staticStyle: { "padding-top": "20px" } }, [t("div", { staticClass: "flex w-full justify-end", staticStyle: { "margin-top": "0.5em", "margin-bottom": "0.5em" } }, [t("CButton", { staticStyle: { "font-size": "13px", "margin-left": "2px" }, attrs: { type: "none", pattern: "secondary", size: "small" }, domProps: { textContent: e._s(e.$t("_common:add", { thing: e.$t("_common:field") })) }, on: { click: e.openFieldModal } })], 1), e._l([
|
|
2058
2068
|
{
|
|
2059
2069
|
label: e.$t("usedFields"),
|
|
2060
2070
|
defaultOpen: !0,
|
|
@@ -2072,29 +2082,29 @@ var _1 = function() {
|
|
|
2072
2082
|
defaultOpen: !e.usedFields.length,
|
|
2073
2083
|
items: e.unUsedFields
|
|
2074
2084
|
}
|
|
2075
|
-
], function(a,
|
|
2076
|
-
return t("CAccordion", { key:
|
|
2077
|
-
return t("div", { staticClass: "list-button" }, [t("span", [t("span", { domProps: { textContent: e._s(a.label) } }), t("span", { staticStyle: { opacity: "0.45", "padding-left": "0.5em" }, domProps: { textContent: e._s(a.items.length) } })]), t("CIcon", { staticStyle: { transition: "200ms" }, style: { transform: `rotate(${
|
|
2078
|
-
} }], null, !0) }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [a.items.length ? e._l(a.items, function(
|
|
2079
|
-
return t("div", { key: o, staticClass: "field-parent flex w-full items-center" }, [t("div", { staticClass: "field-container", staticStyle: { position: "relative", flex: "1 1 auto" } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { label: " ", "label-position": "inside" } }, [t("span", { staticClass: "drag-label", attrs: { draggable: "" }, domProps: { textContent: e._s(
|
|
2085
|
+
], function(a, n) {
|
|
2086
|
+
return t("CAccordion", { key: n, staticStyle: { "border-top": "1px solid hsl(0, 0%, 88%)" }, attrs: { "default-open": a.defaultOpen }, scopedSlots: e._u([{ key: "trigger", fn: function({ expanded: s }) {
|
|
2087
|
+
return [t("div", { staticClass: "list-button" }, [t("span", [t("span", { domProps: { textContent: e._s(a.label) } }), t("span", { staticStyle: { opacity: "0.45", "padding-left": "0.5em" }, domProps: { textContent: e._s(a.items.length) } })]), t("CIcon", { staticStyle: { transition: "200ms" }, style: { transform: `rotate(${s ? "180deg" : "0deg"})` }, attrs: { type: "chevron-down", size: "15" } })], 1)];
|
|
2088
|
+
} }], null, !0) }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [a.items.length ? e._l(a.items, function(s, o) {
|
|
2089
|
+
return t("div", { key: o, staticClass: "field-parent flex w-full items-center" }, [t("div", { staticClass: "field-container", staticStyle: { position: "relative", flex: "1 1 auto" } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { label: " ", "label-position": "inside" } }, [t("span", { staticClass: "drag-label", attrs: { draggable: "" }, domProps: { textContent: e._s(s.label) }, on: { dragstart: (l) => e.onDragStart(l, s) } }), t("CInput", { staticStyle: { width: "100%" }, attrs: { value: s.value, disabled: s.inputDisabled, filled: "", size: "small" }, on: { blur: function(l) {
|
|
2080
2090
|
var r;
|
|
2081
|
-
return
|
|
2082
|
-
} } })], 1), t("div", { staticClass: "field-actions" }, [!
|
|
2083
|
-
return e.openFieldModal({ existingFieldId:
|
|
2091
|
+
return s.onInput(((r = l == null ? void 0 : l.target) == null ? void 0 : r.value) || "");
|
|
2092
|
+
} } })], 1), t("div", { staticClass: "field-actions" }, [!s.inputDisabled && !s.virtual ? t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary" }, on: { click: function(l) {
|
|
2093
|
+
return e.openFieldModal({ existingFieldId: s.id });
|
|
2084
2094
|
} } }) : e._e(), t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "copy", size: "small", type: "none", pattern: "secondary" }, on: { click: function(l) {
|
|
2085
|
-
return e.onCopyField(`{{${
|
|
2095
|
+
return e.onCopyField(`{{${s.key}}}`);
|
|
2086
2096
|
} } })], 1)], 1)]);
|
|
2087
2097
|
}) : 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)]);
|
|
2088
2098
|
})], 2)], 1);
|
|
2089
|
-
},
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2099
|
+
}, D1 = [], V1 = /* @__PURE__ */ d(
|
|
2100
|
+
S1,
|
|
2101
|
+
T1,
|
|
2102
|
+
D1,
|
|
2093
2103
|
!1,
|
|
2094
2104
|
null,
|
|
2095
|
-
"
|
|
2105
|
+
"3e697ae4"
|
|
2096
2106
|
);
|
|
2097
|
-
const
|
|
2107
|
+
const B1 = V1.exports, M1 = (i) => {
|
|
2098
2108
|
const e = Array(2).fill().map(() => p());
|
|
2099
2109
|
return [
|
|
2100
2110
|
{
|
|
@@ -2116,7 +2126,7 @@ const S1 = $1.exports, T1 = (i) => {
|
|
|
2116
2126
|
nodeId: e[1]
|
|
2117
2127
|
}
|
|
2118
2128
|
];
|
|
2119
|
-
},
|
|
2129
|
+
}, I1 = (i, e = "en") => [
|
|
2120
2130
|
{
|
|
2121
2131
|
key: `title-${i}`,
|
|
2122
2132
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
@@ -2129,13 +2139,13 @@ const S1 = $1.exports, T1 = (i) => {
|
|
|
2129
2139
|
$ref: `${f.api.baseUrl}/schemas/file/1.json`
|
|
2130
2140
|
}
|
|
2131
2141
|
}
|
|
2132
|
-
],
|
|
2142
|
+
], F1 = ({ document: i = null }) => {
|
|
2133
2143
|
const e = p(), { language: t } = i || {};
|
|
2134
2144
|
return {
|
|
2135
|
-
readView:
|
|
2136
|
-
validation:
|
|
2145
|
+
readView: M1(e),
|
|
2146
|
+
validation: I1(e, t)
|
|
2137
2147
|
};
|
|
2138
|
-
},
|
|
2148
|
+
}, H1 = (i) => [
|
|
2139
2149
|
{
|
|
2140
2150
|
itemId: "coverBlock",
|
|
2141
2151
|
itemType: "coverBlock",
|
|
@@ -2145,7 +2155,7 @@ const S1 = $1.exports, T1 = (i) => {
|
|
|
2145
2155
|
parentId: "0",
|
|
2146
2156
|
nodeId: p()
|
|
2147
2157
|
}
|
|
2148
|
-
],
|
|
2158
|
+
], A1 = (i, e = "en") => [
|
|
2149
2159
|
{
|
|
2150
2160
|
key: `coverBlock-${i}`,
|
|
2151
2161
|
defaultValue: {
|
|
@@ -2162,7 +2172,7 @@ const S1 = $1.exports, T1 = (i) => {
|
|
|
2162
2172
|
},
|
|
2163
2173
|
$ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
|
|
2164
2174
|
}
|
|
2165
|
-
],
|
|
2175
|
+
], P1 = (i) => ({
|
|
2166
2176
|
[`data.coverBlock-${i}`]: {
|
|
2167
2177
|
text: "<h1>We know communication</h1>",
|
|
2168
2178
|
cover: {
|
|
@@ -2172,19 +2182,19 @@ const S1 = $1.exports, T1 = (i) => {
|
|
|
2172
2182
|
blur: 0
|
|
2173
2183
|
}
|
|
2174
2184
|
}
|
|
2175
|
-
}),
|
|
2185
|
+
}), E1 = ({
|
|
2176
2186
|
includeMockData: i = !1,
|
|
2177
2187
|
document: e = null,
|
|
2178
2188
|
contentData: t = null
|
|
2179
2189
|
} = {}) => {
|
|
2180
|
-
const a = p(), { language:
|
|
2181
|
-
let
|
|
2182
|
-
return typeof t == "function" ?
|
|
2183
|
-
readView:
|
|
2184
|
-
validation:
|
|
2185
|
-
...
|
|
2190
|
+
const a = p(), { language: n } = e || {};
|
|
2191
|
+
let s = null;
|
|
2192
|
+
return typeof t == "function" ? s = t(a) : i && (s = P1(a)), {
|
|
2193
|
+
readView: H1(a),
|
|
2194
|
+
validation: A1(a, n),
|
|
2195
|
+
...s && { data: s }
|
|
2186
2196
|
};
|
|
2187
|
-
},
|
|
2197
|
+
}, z1 = ({ language: i = "en" } = {}) => {
|
|
2188
2198
|
const e = (t) => m.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
|
|
2189
2199
|
lng: i
|
|
2190
2200
|
});
|
|
@@ -2329,7 +2339,7 @@ const S1 = $1.exports, T1 = (i) => {
|
|
|
2329
2339
|
})
|
|
2330
2340
|
}
|
|
2331
2341
|
];
|
|
2332
|
-
},
|
|
2342
|
+
}, Z1 = () => {
|
|
2333
2343
|
const i = Array(5).fill().map(() => p());
|
|
2334
2344
|
return [
|
|
2335
2345
|
{
|
|
@@ -2378,7 +2388,7 @@ const S1 = $1.exports, T1 = (i) => {
|
|
|
2378
2388
|
nodeId: i[4]
|
|
2379
2389
|
}
|
|
2380
2390
|
];
|
|
2381
|
-
},
|
|
2391
|
+
}, O1 = () => ({
|
|
2382
2392
|
clients: [
|
|
2383
2393
|
{
|
|
2384
2394
|
name: "Pernilla P.",
|
|
@@ -2390,7 +2400,7 @@ const S1 = $1.exports, T1 = (i) => {
|
|
|
2390
2400
|
answerMethod: { accept: "signature", deny: "button" }
|
|
2391
2401
|
}
|
|
2392
2402
|
]
|
|
2393
|
-
}),
|
|
2403
|
+
}), U1 = (i = "en") => [
|
|
2394
2404
|
{ key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
2395
2405
|
{ key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
2396
2406
|
{
|
|
@@ -2398,20 +2408,20 @@ const S1 = $1.exports, T1 = (i) => {
|
|
|
2398
2408
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
2399
2409
|
defaultValue: m.t("components:document.chapters.parties.title", { lng: i })
|
|
2400
2410
|
}
|
|
2401
|
-
],
|
|
2411
|
+
], R1 = ({
|
|
2402
2412
|
includeMockData: i = !1,
|
|
2403
2413
|
document: e = null,
|
|
2404
2414
|
contentData: t = null
|
|
2405
2415
|
}) => {
|
|
2406
2416
|
const { language: a } = e || {};
|
|
2407
|
-
let
|
|
2408
|
-
return typeof t == "function" ?
|
|
2409
|
-
readView:
|
|
2410
|
-
validation:
|
|
2417
|
+
let n = null;
|
|
2418
|
+
return typeof t == "function" ? n = t() : i && (n = O1()), {
|
|
2419
|
+
readView: Z1(),
|
|
2420
|
+
validation: U1(a),
|
|
2411
2421
|
// Client / company will for now always exist on doc and in validation
|
|
2412
|
-
...
|
|
2422
|
+
...n && { data: n }
|
|
2413
2423
|
};
|
|
2414
|
-
},
|
|
2424
|
+
}, G1 = (i) => [
|
|
2415
2425
|
{
|
|
2416
2426
|
itemId: "embed",
|
|
2417
2427
|
itemType: "embed",
|
|
@@ -2425,7 +2435,7 @@ const S1 = $1.exports, T1 = (i) => {
|
|
|
2425
2435
|
parentId: "0",
|
|
2426
2436
|
nodeId: p()
|
|
2427
2437
|
}
|
|
2428
|
-
],
|
|
2438
|
+
], W1 = (i) => [
|
|
2429
2439
|
{
|
|
2430
2440
|
key: `embed-${i}`,
|
|
2431
2441
|
$ref: `${f.api.baseUrl}/schemas/embed/1.json`,
|
|
@@ -2434,17 +2444,17 @@ const S1 = $1.exports, T1 = (i) => {
|
|
|
2434
2444
|
size: "small"
|
|
2435
2445
|
}
|
|
2436
2446
|
}
|
|
2437
|
-
],
|
|
2447
|
+
], q1 = () => null, N1 = ({
|
|
2438
2448
|
includeMockData: i = !1,
|
|
2439
2449
|
document: e = null,
|
|
2440
2450
|
contentData: t = null
|
|
2441
2451
|
} = {}) => {
|
|
2442
2452
|
const a = p();
|
|
2443
|
-
let
|
|
2444
|
-
return typeof t == "function" ?
|
|
2445
|
-
readView:
|
|
2446
|
-
validation:
|
|
2447
|
-
...
|
|
2453
|
+
let n = null;
|
|
2454
|
+
return typeof t == "function" ? n = t(a) : i && (n = q1()), {
|
|
2455
|
+
readView: G1(a),
|
|
2456
|
+
validation: W1(a),
|
|
2457
|
+
...n && { data: n }
|
|
2448
2458
|
};
|
|
2449
2459
|
};
|
|
2450
2460
|
m.loadOptions({
|
|
@@ -2458,7 +2468,7 @@ m.loadOptions({
|
|
|
2458
2468
|
}
|
|
2459
2469
|
}
|
|
2460
2470
|
});
|
|
2461
|
-
const
|
|
2471
|
+
const j1 = ({ language: i = "en" } = {}) => [
|
|
2462
2472
|
{
|
|
2463
2473
|
previewUrl: `
|
|
2464
2474
|
<div style="position: relative;">
|
|
@@ -2752,7 +2762,7 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
2752
2762
|
}
|
|
2753
2763
|
})
|
|
2754
2764
|
}
|
|
2755
|
-
],
|
|
2765
|
+
], K1 = (i) => {
|
|
2756
2766
|
const e = Array(3).fill().map(() => p());
|
|
2757
2767
|
return [
|
|
2758
2768
|
{
|
|
@@ -2788,7 +2798,7 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
2788
2798
|
nodeId: e[2]
|
|
2789
2799
|
}
|
|
2790
2800
|
];
|
|
2791
|
-
},
|
|
2801
|
+
}, Y1 = (i) => [
|
|
2792
2802
|
{
|
|
2793
2803
|
key: `estimatedTimeComplete-${i}`,
|
|
2794
2804
|
type: "object",
|
|
@@ -2806,23 +2816,23 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
2806
2816
|
}
|
|
2807
2817
|
}
|
|
2808
2818
|
}
|
|
2809
|
-
],
|
|
2819
|
+
], Q1 = (i) => ({
|
|
2810
2820
|
[`estimatedTimeComplete-${i}`]: {
|
|
2811
2821
|
value: 4,
|
|
2812
2822
|
unitType: "hour"
|
|
2813
2823
|
}
|
|
2814
|
-
}),
|
|
2824
|
+
}), J1 = ({
|
|
2815
2825
|
includeMockData: i = !1,
|
|
2816
2826
|
contentData: e = null
|
|
2817
2827
|
}) => {
|
|
2818
2828
|
const t = p();
|
|
2819
2829
|
let a = null;
|
|
2820
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
2821
|
-
readView:
|
|
2822
|
-
validation:
|
|
2830
|
+
return typeof e == "function" ? a = e(t) : i && (a = Q1(t)), {
|
|
2831
|
+
readView: K1(t),
|
|
2832
|
+
validation: Y1(t),
|
|
2823
2833
|
...a && { data: a }
|
|
2824
2834
|
};
|
|
2825
|
-
},
|
|
2835
|
+
}, X1 = () => {
|
|
2826
2836
|
const i = Array(3).fill().map(() => p());
|
|
2827
2837
|
return [
|
|
2828
2838
|
{
|
|
@@ -2856,7 +2866,7 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
2856
2866
|
nodeId: i[2]
|
|
2857
2867
|
}
|
|
2858
2868
|
];
|
|
2859
|
-
},
|
|
2869
|
+
}, e2 = () => [
|
|
2860
2870
|
{
|
|
2861
2871
|
key: "estimatedWorkDates",
|
|
2862
2872
|
type: "object",
|
|
@@ -2865,10 +2875,10 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
2865
2875
|
endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
|
|
2866
2876
|
}
|
|
2867
2877
|
}
|
|
2868
|
-
],
|
|
2869
|
-
readView:
|
|
2870
|
-
validation:
|
|
2871
|
-
}),
|
|
2878
|
+
], t2 = () => ({
|
|
2879
|
+
readView: X1(),
|
|
2880
|
+
validation: e2()
|
|
2881
|
+
}), i2 = () => {
|
|
2872
2882
|
const i = Array(5).fill().map(() => p());
|
|
2873
2883
|
return [
|
|
2874
2884
|
{
|
|
@@ -2934,7 +2944,7 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
2934
2944
|
nodeId: i[4]
|
|
2935
2945
|
}
|
|
2936
2946
|
];
|
|
2937
|
-
},
|
|
2947
|
+
}, a2 = () => [
|
|
2938
2948
|
{
|
|
2939
2949
|
key: "extraWorkConstruction",
|
|
2940
2950
|
extraWorkConstruction: {
|
|
@@ -2958,11 +2968,11 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
2958
2968
|
}
|
|
2959
2969
|
}
|
|
2960
2970
|
}
|
|
2961
|
-
],
|
|
2962
|
-
readView:
|
|
2963
|
-
validation:
|
|
2971
|
+
], n2 = () => ({
|
|
2972
|
+
readView: i2(),
|
|
2973
|
+
validation: a2()
|
|
2964
2974
|
// Client / company will for now always exist on doc and in validation
|
|
2965
|
-
}),
|
|
2975
|
+
}), s2 = () => {
|
|
2966
2976
|
const i = Array(3).fill().map(() => p());
|
|
2967
2977
|
return [
|
|
2968
2978
|
{
|
|
@@ -3002,7 +3012,7 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
3002
3012
|
nodeId: i[2]
|
|
3003
3013
|
}
|
|
3004
3014
|
];
|
|
3005
|
-
},
|
|
3015
|
+
}, o2 = () => [
|
|
3006
3016
|
{
|
|
3007
3017
|
key: "extraWorkTimeImpact",
|
|
3008
3018
|
anyOf: [
|
|
@@ -3020,10 +3030,10 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
3020
3030
|
}
|
|
3021
3031
|
]
|
|
3022
3032
|
}
|
|
3023
|
-
],
|
|
3024
|
-
readView:
|
|
3025
|
-
validation:
|
|
3026
|
-
}),
|
|
3033
|
+
], l2 = () => ({
|
|
3034
|
+
readView: s2(),
|
|
3035
|
+
validation: o2()
|
|
3036
|
+
}), r2 = (i) => [
|
|
3027
3037
|
{
|
|
3028
3038
|
itemId: `header-${i}`,
|
|
3029
3039
|
itemType: "header",
|
|
@@ -3033,14 +3043,14 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
3033
3043
|
parentId: "0",
|
|
3034
3044
|
nodeId: p()
|
|
3035
3045
|
}
|
|
3036
|
-
],
|
|
3037
|
-
const { language: t = "en", name: a = "", theme:
|
|
3038
|
-
e && (e.name =
|
|
3046
|
+
], c2 = (i, e = null) => {
|
|
3047
|
+
const { language: t = "en", name: a = "", theme: n } = e || {}, s = a || m.t("_common:proposal", { lng: t }).capitalize();
|
|
3048
|
+
e && (e.name = s);
|
|
3039
3049
|
const {
|
|
3040
3050
|
background: o,
|
|
3041
3051
|
priceSummaryBackground: l,
|
|
3042
3052
|
backgroundFilter: r
|
|
3043
|
-
} =
|
|
3053
|
+
} = n || {}, c = l || "hsl(228, 52%, 18%)", g = st.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
|
|
3044
3054
|
return [
|
|
3045
3055
|
{
|
|
3046
3056
|
key: `header-${i}`,
|
|
@@ -3071,7 +3081,7 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
3071
3081
|
},
|
|
3072
3082
|
value: {
|
|
3073
3083
|
preText: "",
|
|
3074
|
-
documentName: `<p data-typography="title">${
|
|
3084
|
+
documentName: `<p data-typography="title">${s}</p>`,
|
|
3075
3085
|
postText: m.t("components:document.chapters.header.postText", {
|
|
3076
3086
|
lng: t,
|
|
3077
3087
|
interpolation: { prefix: "__", suffix: "__" }
|
|
@@ -3084,7 +3094,7 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
3084
3094
|
}
|
|
3085
3095
|
}
|
|
3086
3096
|
];
|
|
3087
|
-
},
|
|
3097
|
+
}, d2 = (i) => ({
|
|
3088
3098
|
[`data.header-${i}`]: {
|
|
3089
3099
|
layout: "vertical",
|
|
3090
3100
|
baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
|
|
@@ -3114,19 +3124,19 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
3114
3124
|
}
|
|
3115
3125
|
]
|
|
3116
3126
|
}
|
|
3117
|
-
}),
|
|
3127
|
+
}), p2 = ({
|
|
3118
3128
|
includeMockData: i = !1,
|
|
3119
3129
|
document: e = null,
|
|
3120
3130
|
contentData: t = null
|
|
3121
3131
|
}) => {
|
|
3122
3132
|
const a = p();
|
|
3123
|
-
let
|
|
3124
|
-
return typeof t == "function" ?
|
|
3125
|
-
readView:
|
|
3126
|
-
validation:
|
|
3127
|
-
...
|
|
3133
|
+
let n = null;
|
|
3134
|
+
return typeof t == "function" ? n = t(a) : i && (n = d2(a)), {
|
|
3135
|
+
readView: r2(a),
|
|
3136
|
+
validation: c2(a, e),
|
|
3137
|
+
...n && { data: n }
|
|
3128
3138
|
};
|
|
3129
|
-
},
|
|
3139
|
+
}, u2 = ({ language: i = "en" } = {}) => {
|
|
3130
3140
|
const e = (t) => m.t(`components:account.documentForm.contentItems.header.${t}`, {
|
|
3131
3141
|
lng: i,
|
|
3132
3142
|
interpolation: { prefix: "__", suffix: "__" }
|
|
@@ -3416,7 +3426,7 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
3416
3426
|
})
|
|
3417
3427
|
}
|
|
3418
3428
|
];
|
|
3419
|
-
},
|
|
3429
|
+
}, m2 = () => {
|
|
3420
3430
|
const i = Array(2).fill().map(() => p());
|
|
3421
3431
|
return [
|
|
3422
3432
|
{
|
|
@@ -3439,7 +3449,7 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
3439
3449
|
// uniqid(),
|
|
3440
3450
|
}
|
|
3441
3451
|
];
|
|
3442
|
-
},
|
|
3452
|
+
}, h2 = (i = "en") => [
|
|
3443
3453
|
{
|
|
3444
3454
|
key: "multiGroupPricing-title",
|
|
3445
3455
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
@@ -3448,13 +3458,13 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
3448
3458
|
{ lng: i }
|
|
3449
3459
|
)
|
|
3450
3460
|
}
|
|
3451
|
-
],
|
|
3461
|
+
], f2 = ({ document: i = null }) => {
|
|
3452
3462
|
const { language: e } = i || {};
|
|
3453
3463
|
return {
|
|
3454
|
-
readView:
|
|
3455
|
-
validation:
|
|
3464
|
+
readView: m2(),
|
|
3465
|
+
validation: h2(e)
|
|
3456
3466
|
};
|
|
3457
|
-
},
|
|
3467
|
+
}, g2 = () => {
|
|
3458
3468
|
const i = Array(5).fill().map(() => p());
|
|
3459
3469
|
return [
|
|
3460
3470
|
{
|
|
@@ -3504,12 +3514,12 @@ const G1 = ({ language: i = "en" } = {}) => [
|
|
|
3504
3514
|
nodeId: i[4]
|
|
3505
3515
|
}
|
|
3506
3516
|
];
|
|
3507
|
-
},
|
|
3517
|
+
}, C2 = () => [
|
|
3508
3518
|
{ key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
|
|
3509
3519
|
{ key: "notBinding", type: "boolean" }
|
|
3510
|
-
],
|
|
3511
|
-
readView:
|
|
3512
|
-
validation:
|
|
3520
|
+
], v2 = () => ({
|
|
3521
|
+
readView: g2(),
|
|
3522
|
+
validation: C2()
|
|
3513
3523
|
});
|
|
3514
3524
|
m.loadOptions({
|
|
3515
3525
|
namespaces: "packageGroupTemplate",
|
|
@@ -3522,7 +3532,7 @@ m.loadOptions({
|
|
|
3522
3532
|
}
|
|
3523
3533
|
}
|
|
3524
3534
|
});
|
|
3525
|
-
const
|
|
3535
|
+
const y2 = (i) => {
|
|
3526
3536
|
const e = Array(2).fill().map(() => p());
|
|
3527
3537
|
return [
|
|
3528
3538
|
{
|
|
@@ -3547,7 +3557,7 @@ const f2 = (i) => {
|
|
|
3547
3557
|
nodeId: e[1]
|
|
3548
3558
|
}
|
|
3549
3559
|
];
|
|
3550
|
-
},
|
|
3560
|
+
}, x2 = (i, e = "en") => [
|
|
3551
3561
|
{
|
|
3552
3562
|
key: `packageGroups.${i}`,
|
|
3553
3563
|
validationKey: "packageGroups",
|
|
@@ -3567,19 +3577,19 @@ const f2 = (i) => {
|
|
|
3567
3577
|
},
|
|
3568
3578
|
$ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
|
|
3569
3579
|
}
|
|
3570
|
-
],
|
|
3580
|
+
], w2 = () => null, b2 = ({
|
|
3571
3581
|
includeMockData: i,
|
|
3572
3582
|
document: e = null,
|
|
3573
3583
|
contentData: t = null
|
|
3574
3584
|
} = {}) => {
|
|
3575
|
-
const a = p(), { language:
|
|
3576
|
-
let
|
|
3577
|
-
typeof t == "function" ?
|
|
3578
|
-
const o =
|
|
3585
|
+
const a = p(), { language: n } = e || {};
|
|
3586
|
+
let s = null;
|
|
3587
|
+
typeof t == "function" ? s = t(a) : i && (s = w2());
|
|
3588
|
+
const o = y2(a), l = x2(a, n);
|
|
3579
3589
|
return {
|
|
3580
3590
|
readView: o,
|
|
3581
3591
|
validation: l,
|
|
3582
|
-
...
|
|
3592
|
+
...s && { data: s }
|
|
3583
3593
|
};
|
|
3584
3594
|
};
|
|
3585
3595
|
m.loadOptions({
|
|
@@ -3667,13 +3677,13 @@ m.loadOptions({
|
|
|
3667
3677
|
}
|
|
3668
3678
|
}
|
|
3669
3679
|
});
|
|
3670
|
-
const
|
|
3680
|
+
const k2 = ({
|
|
3671
3681
|
language: i = "en",
|
|
3672
3682
|
currency: e = "USD",
|
|
3673
3683
|
_getters: t,
|
|
3674
3684
|
allArticles: a = []
|
|
3675
3685
|
} = {}) => {
|
|
3676
|
-
const
|
|
3686
|
+
const n = u(t, "settings/defaultVatRate") || null, s = !u(t, "settings/hidePriceOnNewlyAddedArticles"), o = (l) => m.t(`packageGroupContentItems:${l}`, { lng: i });
|
|
3677
3687
|
return [
|
|
3678
3688
|
{
|
|
3679
3689
|
previewUrl: `
|
|
@@ -3741,8 +3751,8 @@ const y2 = ({
|
|
|
3741
3751
|
articles: [
|
|
3742
3752
|
...a,
|
|
3743
3753
|
x({
|
|
3744
|
-
vat:
|
|
3745
|
-
showPrice:
|
|
3754
|
+
vat: n,
|
|
3755
|
+
showPrice: s,
|
|
3746
3756
|
currency: e,
|
|
3747
3757
|
packageId: r,
|
|
3748
3758
|
name: o("single.art"),
|
|
@@ -3870,16 +3880,16 @@ const y2 = ({
|
|
|
3870
3880
|
articles: [
|
|
3871
3881
|
...a,
|
|
3872
3882
|
x({
|
|
3873
|
-
vat:
|
|
3874
|
-
showPrice:
|
|
3883
|
+
vat: n,
|
|
3884
|
+
showPrice: s,
|
|
3875
3885
|
currency: e,
|
|
3876
3886
|
packageId: r[0],
|
|
3877
3887
|
name: o("radio.artA"),
|
|
3878
3888
|
price: 1e5
|
|
3879
3889
|
}),
|
|
3880
3890
|
x({
|
|
3881
|
-
vat:
|
|
3882
|
-
showPrice:
|
|
3891
|
+
vat: n,
|
|
3892
|
+
showPrice: s,
|
|
3883
3893
|
currency: e,
|
|
3884
3894
|
packageId: r[1],
|
|
3885
3895
|
name: o("radio.artB"),
|
|
@@ -4004,16 +4014,16 @@ const y2 = ({
|
|
|
4004
4014
|
articles: [
|
|
4005
4015
|
...a,
|
|
4006
4016
|
x({
|
|
4007
|
-
vat:
|
|
4008
|
-
showPrice:
|
|
4017
|
+
vat: n,
|
|
4018
|
+
showPrice: s,
|
|
4009
4019
|
currency: e,
|
|
4010
4020
|
packageId: r[0],
|
|
4011
4021
|
name: o("checkbox.artBase"),
|
|
4012
4022
|
price: 1e5
|
|
4013
4023
|
}),
|
|
4014
4024
|
x({
|
|
4015
|
-
vat:
|
|
4016
|
-
showPrice:
|
|
4025
|
+
vat: n,
|
|
4026
|
+
showPrice: s,
|
|
4017
4027
|
currency: e,
|
|
4018
4028
|
packageId: r[1],
|
|
4019
4029
|
name: o("checkbox.artOption"),
|
|
@@ -4024,7 +4034,7 @@ const y2 = ({
|
|
|
4024
4034
|
}
|
|
4025
4035
|
}
|
|
4026
4036
|
];
|
|
4027
|
-
},
|
|
4037
|
+
}, _2 = () => [
|
|
4028
4038
|
{
|
|
4029
4039
|
itemId: "presentation",
|
|
4030
4040
|
itemType: "presentation",
|
|
@@ -4032,11 +4042,11 @@ const y2 = ({
|
|
|
4032
4042
|
parentId: "0",
|
|
4033
4043
|
nodeId: p()
|
|
4034
4044
|
}
|
|
4035
|
-
],
|
|
4036
|
-
readView:
|
|
4045
|
+
], L2 = () => ({
|
|
4046
|
+
readView: _2(),
|
|
4037
4047
|
validation: []
|
|
4038
4048
|
// all relevant data is either within base doc or company settings etc
|
|
4039
|
-
}),
|
|
4049
|
+
}), $2 = () => [
|
|
4040
4050
|
{
|
|
4041
4051
|
itemId: "terms",
|
|
4042
4052
|
itemType: "termsDisclaimer",
|
|
@@ -4054,7 +4064,7 @@ const y2 = ({
|
|
|
4054
4064
|
parentId: "0",
|
|
4055
4065
|
nodeId: p()
|
|
4056
4066
|
}
|
|
4057
|
-
],
|
|
4067
|
+
], S2 = () => [
|
|
4058
4068
|
{
|
|
4059
4069
|
key: "terms",
|
|
4060
4070
|
anyOf: [
|
|
@@ -4062,10 +4072,10 @@ const y2 = ({
|
|
|
4062
4072
|
{ type: "null" }
|
|
4063
4073
|
]
|
|
4064
4074
|
}
|
|
4065
|
-
],
|
|
4066
|
-
readView:
|
|
4067
|
-
validation:
|
|
4068
|
-
}),
|
|
4075
|
+
], T2 = () => ({
|
|
4076
|
+
readView: $2(),
|
|
4077
|
+
validation: S2()
|
|
4078
|
+
}), D2 = (i) => {
|
|
4069
4079
|
const e = Array(2).fill().map(() => p());
|
|
4070
4080
|
return [
|
|
4071
4081
|
{
|
|
@@ -4087,29 +4097,29 @@ const y2 = ({
|
|
|
4087
4097
|
nodeId: e[1]
|
|
4088
4098
|
}
|
|
4089
4099
|
];
|
|
4090
|
-
},
|
|
4100
|
+
}, V2 = (i) => [
|
|
4091
4101
|
{
|
|
4092
4102
|
key: `title-${i}`,
|
|
4093
4103
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
4094
4104
|
defaultValue: ""
|
|
4095
4105
|
},
|
|
4096
4106
|
{ key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
|
|
4097
|
-
],
|
|
4107
|
+
], B2 = (i) => ({
|
|
4098
4108
|
[`data.title-${i}`]: "My custom text",
|
|
4099
4109
|
[`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>"
|
|
4100
|
-
}),
|
|
4110
|
+
}), M2 = ({
|
|
4101
4111
|
includeMockData: i = !1,
|
|
4102
4112
|
contentData: e = null
|
|
4103
4113
|
}) => {
|
|
4104
4114
|
const t = p();
|
|
4105
4115
|
let a = null;
|
|
4106
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
4107
|
-
readView:
|
|
4108
|
-
validation:
|
|
4116
|
+
return typeof e == "function" ? a = e(t) : i && (a = B2(t)), {
|
|
4117
|
+
readView: D2(t),
|
|
4118
|
+
validation: V2(t),
|
|
4109
4119
|
...a && { data: a },
|
|
4110
4120
|
onAddFnName: "conditionalOnAdd"
|
|
4111
4121
|
};
|
|
4112
|
-
},
|
|
4122
|
+
}, I2 = (i) => [
|
|
4113
4123
|
{
|
|
4114
4124
|
itemId: "videoPlayer",
|
|
4115
4125
|
itemType: "videoPlayer",
|
|
@@ -4122,7 +4132,7 @@ const y2 = ({
|
|
|
4122
4132
|
parentId: "0",
|
|
4123
4133
|
nodeId: p()
|
|
4124
4134
|
}
|
|
4125
|
-
],
|
|
4135
|
+
], F2 = (i) => [
|
|
4126
4136
|
{
|
|
4127
4137
|
key: `video-${i}`,
|
|
4128
4138
|
$ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
|
|
@@ -4133,7 +4143,7 @@ const y2 = ({
|
|
|
4133
4143
|
}
|
|
4134
4144
|
}
|
|
4135
4145
|
}
|
|
4136
|
-
],
|
|
4146
|
+
], H2 = (i) => ({
|
|
4137
4147
|
[`data.video-${i}`]: {
|
|
4138
4148
|
size: "small",
|
|
4139
4149
|
video: {
|
|
@@ -4142,18 +4152,18 @@ const y2 = ({
|
|
|
4142
4152
|
id: "166JEb6qkr4"
|
|
4143
4153
|
}
|
|
4144
4154
|
}
|
|
4145
|
-
}),
|
|
4155
|
+
}), A2 = ({
|
|
4146
4156
|
includeMockData: i = !1,
|
|
4147
4157
|
contentData: e = null
|
|
4148
4158
|
}) => {
|
|
4149
4159
|
const t = p();
|
|
4150
4160
|
let a = null;
|
|
4151
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
4152
|
-
readView:
|
|
4153
|
-
validation:
|
|
4161
|
+
return typeof e == "function" ? a = e(t) : i && (a = H2(t)), {
|
|
4162
|
+
readView: I2(t),
|
|
4163
|
+
validation: F2(t),
|
|
4154
4164
|
...a && { data: a }
|
|
4155
4165
|
};
|
|
4156
|
-
},
|
|
4166
|
+
}, P2 = ({ language: i = "en" } = {}) => [
|
|
4157
4167
|
{
|
|
4158
4168
|
previewUrl: `
|
|
4159
4169
|
<div style="position: relative;">
|
|
@@ -4354,35 +4364,35 @@ const y2 = ({
|
|
|
4354
4364
|
}
|
|
4355
4365
|
})
|
|
4356
4366
|
}
|
|
4357
|
-
],
|
|
4358
|
-
titleAndText2:
|
|
4359
|
-
attachments2:
|
|
4360
|
-
pdf:
|
|
4361
|
-
packageGroup:
|
|
4362
|
-
multiGroupPricing:
|
|
4363
|
-
coverBlock:
|
|
4364
|
-
videoPlayer:
|
|
4365
|
-
embed:
|
|
4366
|
-
header:
|
|
4367
|
-
answer:
|
|
4368
|
-
terms:
|
|
4369
|
-
parties:
|
|
4370
|
-
custom:
|
|
4367
|
+
], R = {
|
|
4368
|
+
titleAndText2: M2,
|
|
4369
|
+
attachments2: F1,
|
|
4370
|
+
pdf: fe,
|
|
4371
|
+
packageGroup: b2,
|
|
4372
|
+
multiGroupPricing: f2,
|
|
4373
|
+
coverBlock: E1,
|
|
4374
|
+
videoPlayer: A2,
|
|
4375
|
+
embed: N1,
|
|
4376
|
+
header: p2,
|
|
4377
|
+
answer: ge,
|
|
4378
|
+
terms: T2,
|
|
4379
|
+
parties: R1,
|
|
4380
|
+
custom: Ce,
|
|
4371
4381
|
// legacy
|
|
4372
|
-
presentation:
|
|
4373
|
-
estimatedTimeCompleted:
|
|
4374
|
-
estimatedWorkStartAndEndAtText:
|
|
4375
|
-
extraWorkConstructionPricingList:
|
|
4376
|
-
extraWorkTimeImpactText:
|
|
4377
|
-
notBinding:
|
|
4378
|
-
},
|
|
4379
|
-
coverBlock:
|
|
4380
|
-
header:
|
|
4381
|
-
packageGroup:
|
|
4382
|
-
embed:
|
|
4383
|
-
videoPlayer:
|
|
4384
|
-
custom:
|
|
4385
|
-
},
|
|
4382
|
+
presentation: L2,
|
|
4383
|
+
estimatedTimeCompleted: J1,
|
|
4384
|
+
estimatedWorkStartAndEndAtText: t2,
|
|
4385
|
+
extraWorkConstructionPricingList: n2,
|
|
4386
|
+
extraWorkTimeImpactText: l2,
|
|
4387
|
+
notBinding: v2
|
|
4388
|
+
}, G = {
|
|
4389
|
+
coverBlock: z1,
|
|
4390
|
+
header: u2,
|
|
4391
|
+
packageGroup: k2,
|
|
4392
|
+
embed: j1,
|
|
4393
|
+
videoPlayer: P2,
|
|
4394
|
+
custom: he
|
|
4395
|
+
}, E2 = {
|
|
4386
4396
|
name: "AddBlock",
|
|
4387
4397
|
props: {
|
|
4388
4398
|
set: {
|
|
@@ -4396,31 +4406,31 @@ const y2 = ({
|
|
|
4396
4406
|
},
|
|
4397
4407
|
render() {
|
|
4398
4408
|
return this.$scopedSlots.default({
|
|
4399
|
-
addBlock: (i) =>
|
|
4409
|
+
addBlock: (i) => ve({
|
|
4400
4410
|
...i,
|
|
4401
4411
|
set: this.set,
|
|
4402
|
-
tplGenerators:
|
|
4412
|
+
tplGenerators: R,
|
|
4403
4413
|
includeMockData: this.includeMockData,
|
|
4404
4414
|
emit: (...e) => this.$emit(...e)
|
|
4405
4415
|
}),
|
|
4406
|
-
getBlockPayload: (i) =>
|
|
4416
|
+
getBlockPayload: (i) => ye(
|
|
4407
4417
|
i,
|
|
4408
4418
|
this.set,
|
|
4409
|
-
|
|
4419
|
+
R,
|
|
4410
4420
|
this.includeMockdata
|
|
4411
4421
|
)
|
|
4412
4422
|
});
|
|
4413
4423
|
}
|
|
4414
|
-
},
|
|
4415
|
-
var
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4424
|
+
}, z2 = null, Z2 = null;
|
|
4425
|
+
var O2 = /* @__PURE__ */ d(
|
|
4426
|
+
E2,
|
|
4427
|
+
z2,
|
|
4428
|
+
Z2,
|
|
4419
4429
|
!1,
|
|
4420
4430
|
null,
|
|
4421
4431
|
null
|
|
4422
4432
|
);
|
|
4423
|
-
const
|
|
4433
|
+
const ie = O2.exports, U2 = {
|
|
4424
4434
|
name: "MenuBlockConvertPopover",
|
|
4425
4435
|
props: {
|
|
4426
4436
|
target: {
|
|
@@ -4446,29 +4456,29 @@ const X = P2.exports, E2 = {
|
|
|
4446
4456
|
immediate: !0,
|
|
4447
4457
|
handler(i) {
|
|
4448
4458
|
i && this.$nextTick(() => {
|
|
4449
|
-
const { top: e, left: t, width: a, height:
|
|
4450
|
-
this.$refs.popover.style.top = `${e +
|
|
4459
|
+
const { top: e, left: t, width: a, height: n } = i.getBoundingClientRect();
|
|
4460
|
+
this.$refs.popover.style.top = `${e + n}px`, this.$refs.popover.style.left = `${t + a + 10}px`;
|
|
4451
4461
|
});
|
|
4452
4462
|
}
|
|
4453
4463
|
}
|
|
4454
4464
|
}
|
|
4455
4465
|
};
|
|
4456
|
-
var
|
|
4466
|
+
var R2 = function() {
|
|
4457
4467
|
var e = this, t = e._self._c;
|
|
4458
4468
|
return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
|
|
4459
4469
|
return a.target !== a.currentTarget ? null : e.$emit("close");
|
|
4460
4470
|
} } }), 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 w-52 -translate-y-1/2 rounded-lg bg-white p-4 text-sm shadow-xl" }, [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) {
|
|
4461
4471
|
return e.$emit("convert");
|
|
4462
4472
|
} } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
|
|
4463
|
-
},
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4473
|
+
}, G2 = [], W2 = /* @__PURE__ */ d(
|
|
4474
|
+
U2,
|
|
4475
|
+
R2,
|
|
4476
|
+
G2,
|
|
4467
4477
|
!1,
|
|
4468
4478
|
null,
|
|
4469
4479
|
null
|
|
4470
4480
|
);
|
|
4471
|
-
const
|
|
4481
|
+
const q2 = W2.exports, N2 = q.component("ProBadge", {
|
|
4472
4482
|
name: "ProBadge",
|
|
4473
4483
|
render(i) {
|
|
4474
4484
|
return i(
|
|
@@ -4479,7 +4489,7 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
|
|
|
4479
4489
|
"Pro"
|
|
4480
4490
|
);
|
|
4481
4491
|
}
|
|
4482
|
-
}),
|
|
4492
|
+
}), j2 = {
|
|
4483
4493
|
name: "MenuBlocks",
|
|
4484
4494
|
i18nOptions: {
|
|
4485
4495
|
namespaces: "menuBlocks",
|
|
@@ -4550,12 +4560,12 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
|
|
|
4550
4560
|
},
|
|
4551
4561
|
components: {
|
|
4552
4562
|
simplebar: _,
|
|
4553
|
-
DragList:
|
|
4554
|
-
DragItem:
|
|
4555
|
-
AddBlock:
|
|
4563
|
+
DragList: N,
|
|
4564
|
+
DragItem: j,
|
|
4565
|
+
AddBlock: ie,
|
|
4556
4566
|
IsPremiumPreStep: L,
|
|
4557
|
-
ProBadge:
|
|
4558
|
-
MenuBlockConvertPopover:
|
|
4567
|
+
ProBadge: N2,
|
|
4568
|
+
MenuBlockConvertPopover: q2
|
|
4559
4569
|
},
|
|
4560
4570
|
mixins: [w],
|
|
4561
4571
|
inject: {
|
|
@@ -4860,7 +4870,7 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
|
|
|
4860
4870
|
}
|
|
4861
4871
|
];
|
|
4862
4872
|
return i.forEach((e) => {
|
|
4863
|
-
|
|
4873
|
+
G[e.key] && (e.subMenu = (G[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
|
|
4864
4874
|
}), i;
|
|
4865
4875
|
},
|
|
4866
4876
|
availableBlocks() {
|
|
@@ -4899,7 +4909,7 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
|
|
|
4899
4909
|
if (i.locked)
|
|
4900
4910
|
return t();
|
|
4901
4911
|
if (!this.canUseBlocks) {
|
|
4902
|
-
const a = this.availableBlocks.findIndex((
|
|
4912
|
+
const a = this.availableBlocks.findIndex((n) => n.key === i.key);
|
|
4903
4913
|
return this.showConvertEditableDialogTarget = this.$refs.blockItem[a].$el, this.showConvertEditableDialog = !0, !1;
|
|
4904
4914
|
}
|
|
4905
4915
|
return e({
|
|
@@ -4912,11 +4922,11 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
|
|
|
4912
4922
|
["_id", "id"].forEach((i) => this.removeValue(`template.${i}`)), this.set({ key: "template.views.read.isEditable", value: !0 }), this.showConvertEditableDialog = !1;
|
|
4913
4923
|
},
|
|
4914
4924
|
createTooltips() {
|
|
4915
|
-
var
|
|
4925
|
+
var n, s;
|
|
4916
4926
|
if (this.mq === "sm")
|
|
4917
4927
|
return;
|
|
4918
|
-
const { tooltips: i } = this, e = (
|
|
4919
|
-
this.tippyInstances =
|
|
4928
|
+
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;
|
|
4929
|
+
this.tippyInstances = Ye(this.$el, {
|
|
4920
4930
|
target: "[data-tooltip-key]",
|
|
4921
4931
|
allowHTML: !0,
|
|
4922
4932
|
duration: [150, 0],
|
|
@@ -4941,7 +4951,7 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
|
|
|
4941
4951
|
i.destroy();
|
|
4942
4952
|
}) : this.tippyInstances.destroy && this.tippyInstances.destroy());
|
|
4943
4953
|
},
|
|
4944
|
-
setSubMenuState:
|
|
4954
|
+
setSubMenuState: Z(
|
|
4945
4955
|
function(e) {
|
|
4946
4956
|
this.activeSubMenu = e;
|
|
4947
4957
|
},
|
|
@@ -4984,12 +4994,12 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
|
|
|
4984
4994
|
}
|
|
4985
4995
|
}
|
|
4986
4996
|
};
|
|
4987
|
-
var
|
|
4997
|
+
var K2 = function() {
|
|
4988
4998
|
var e = this, t = e._self._c;
|
|
4989
4999
|
return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
|
|
4990
5000
|
return e.$emit("block-added", a);
|
|
4991
|
-
} }, scopedSlots: e._u([{ key: "default", fn: function({ addBlock: a, getBlockPayload:
|
|
4992
|
-
return [t("IsPremiumPreStep", { attrs: { feature: "documentBlocks" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick:
|
|
5001
|
+
} }, scopedSlots: e._u([{ key: "default", fn: function({ addBlock: a, getBlockPayload: n }) {
|
|
5002
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "documentBlocks" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
4993
5003
|
return [t("div", { on: { "&mouseleave": function(o) {
|
|
4994
5004
|
return e.onMouseleaveDrawer.apply(null, arguments);
|
|
4995
5005
|
} } }, [!e.canUseBlocks && e.showConvertEditableDialog ? t("MenuBlockConvertPopover", { attrs: { target: e.showConvertEditableDialogTarget }, on: { convert: e.deSyncTemplate, close: function(o) {
|
|
@@ -4998,7 +5008,7 @@ var W2 = function() {
|
|
|
4998
5008
|
{ data: e.primaryBlocks },
|
|
4999
5009
|
{ data: e.secondaryBlocks }
|
|
5000
5010
|
], function(o, l) {
|
|
5001
|
-
return t("div", { key: l }, [l > 0 ? t("div", { staticStyle: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(1 * var(--rem))" } }) : e._e(), t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (r) =>
|
|
5011
|
+
return t("div", { key: l }, [l > 0 ? t("div", { staticStyle: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(1 * var(--rem))" } }) : e._e(), t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (r) => n(
|
|
5002
5012
|
e.getSectionKey({ data: o.data, index: r })
|
|
5003
5013
|
), "drop-placeholder": {
|
|
5004
5014
|
className: "drag-drop-menu-placeholder"
|
|
@@ -5016,26 +5026,26 @@ var W2 = function() {
|
|
|
5016
5026
|
!1
|
|
5017
5027
|
), [t("CButton", { ref: "blockItem", refInFor: !0, staticClass: "option-row is-thinner is-left", class: {
|
|
5018
5028
|
"sub-menu-active": r.key === e.activeSubMenuKey
|
|
5019
|
-
}, staticStyle: { "padding-left": "1.5em", "padding-right": "2em", "border-radius": "0", "font-size": "14px", "border-color": "transparent" }, attrs: { disabled: r.disabled, wide: "", pattern: "secondary" }, on: { click: (c) => e.onUseBlock({ block: r, addBlock: a, openUpgradeModal:
|
|
5029
|
+
}, staticStyle: { "padding-left": "1.5em", "padding-right": "2em", "border-radius": "0", "font-size": "14px", "border-color": "transparent" }, attrs: { disabled: r.disabled, wide: "", pattern: "secondary" }, on: { click: (c) => e.onUseBlock({ block: r, addBlock: a, openUpgradeModal: s }) } }, [t("div", { staticClass: "flex items-center", staticStyle: { width: "230px" } }, [t("div", { staticClass: "flex items-center", staticStyle: { width: "initial", flex: "1 1 auto" } }, [t("div", { staticClass: "option-image", domProps: { innerHTML: e._s(r.icon) } }), t("div", { staticClass: "option-title" }, [e._v(" " + e._s(e.$t(`blocks.${r.key}`)) + " ")])]), r.locked ? t("ProBadge") : !e.fixed && r.subMenu ? t("CIcon", { staticStyle: { color: "hsl(205, 10%, 65%)" }, attrs: { type: "chevron-right", size: "14" } }) : e._e()], 1)])], 1)]);
|
|
5020
5030
|
}), 1)], 1);
|
|
5021
5031
|
}), e._t("footer")], 2), t("transition", { attrs: { name: "slide-right" } }, [t("div", { directives: [{ name: "show", rawName: "v-show", value: e.activeSubMenu, expression: "activeSubMenu" }], staticClass: "submenu", on: { "&mouseover": function(o) {
|
|
5022
5032
|
e.subMenuToShow = e.activeSubMenu;
|
|
5023
5033
|
}, "&mouseleave": function(o) {
|
|
5024
5034
|
e.subMenuToShow = null;
|
|
5025
|
-
} } }, [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:
|
|
5026
|
-
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:
|
|
5035
|
+
} } }, [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) {
|
|
5036
|
+
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)]);
|
|
5027
5037
|
}), 1)], 1)], 1)])], 1)];
|
|
5028
5038
|
} }], null, !0) })];
|
|
5029
5039
|
} }]) });
|
|
5030
|
-
},
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5040
|
+
}, Y2 = [], Q2 = /* @__PURE__ */ d(
|
|
5041
|
+
j2,
|
|
5042
|
+
K2,
|
|
5043
|
+
Y2,
|
|
5034
5044
|
!1,
|
|
5035
5045
|
null,
|
|
5036
|
-
"
|
|
5046
|
+
"27720fc4"
|
|
5037
5047
|
);
|
|
5038
|
-
const
|
|
5048
|
+
const J2 = Q2.exports, X2 = {
|
|
5039
5049
|
name: "DocumentFormMenu",
|
|
5040
5050
|
i18nOptions: {
|
|
5041
5051
|
namespaces: "documentFormMenu",
|
|
@@ -5051,12 +5061,12 @@ const j2 = N2.exports, K2 = {
|
|
|
5051
5061
|
}
|
|
5052
5062
|
},
|
|
5053
5063
|
components: {
|
|
5054
|
-
Design:
|
|
5055
|
-
Fields:
|
|
5056
|
-
ExtensionTab:
|
|
5057
|
-
DocumentGeneralSettings:
|
|
5058
|
-
DocumentGuide: () => import("./index-
|
|
5059
|
-
MenuBlocks:
|
|
5064
|
+
Design: p1,
|
|
5065
|
+
Fields: B1,
|
|
5066
|
+
ExtensionTab: w1,
|
|
5067
|
+
DocumentGeneralSettings: g1,
|
|
5068
|
+
DocumentGuide: () => import("./index-Dygy9XlG.js"),
|
|
5069
|
+
MenuBlocks: J2,
|
|
5060
5070
|
Simplebar: _
|
|
5061
5071
|
},
|
|
5062
5072
|
props: {
|
|
@@ -5097,7 +5107,7 @@ const j2 = N2.exports, K2 = {
|
|
|
5097
5107
|
data() {
|
|
5098
5108
|
return {
|
|
5099
5109
|
showGuide: !1,
|
|
5100
|
-
showGuideNotification: !
|
|
5110
|
+
showGuideNotification: !U.getItem("hideFormGuideNotification"),
|
|
5101
5111
|
tab: "blocks"
|
|
5102
5112
|
};
|
|
5103
5113
|
},
|
|
@@ -5119,11 +5129,11 @@ const j2 = N2.exports, K2 = {
|
|
|
5119
5129
|
},
|
|
5120
5130
|
methods: {
|
|
5121
5131
|
openGuide() {
|
|
5122
|
-
this.showGuide = !0, this.showGuideNotification = !1,
|
|
5132
|
+
this.showGuide = !0, this.showGuideNotification = !1, U.setItem("hideFormGuideNotification", !0);
|
|
5123
5133
|
}
|
|
5124
5134
|
}
|
|
5125
5135
|
};
|
|
5126
|
-
var
|
|
5136
|
+
var ei = function() {
|
|
5127
5137
|
var e = this, t = e._self._c;
|
|
5128
5138
|
return t("div", [t("div", { staticClass: "root menu-wrapper fixed left-0 top-14 z-[99] bg-white", style: [{ width: `${e.width}px` }, e.fixed && { zIndex: 999 }] }, [e.fixed ? t("div", { staticClass: "fixed inset-0", on: { click: function(a) {
|
|
5129
5139
|
return e.$emit("close");
|
|
@@ -5149,7 +5159,9 @@ var Y2 = function() {
|
|
|
5149
5159
|
e.tab = "generalSettings";
|
|
5150
5160
|
} } }, [t("CIcon", { 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": function(a) {
|
|
5151
5161
|
e.onAddedBlock(a), e.fixed && e.$emit("close");
|
|
5152
|
-
} }
|
|
5162
|
+
} }, scopedSlots: e._u([{ key: "footer", fn: function() {
|
|
5163
|
+
return [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))" } }, [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)];
|
|
5164
|
+
}, proxy: !0 }], null, !1, 1503450817) }) : t("div", { staticClass: "menu-container" }, [t("Simplebar", { staticClass: "h-full w-full" }, [e.tab === "design" ? t("Design", { attrs: { _document: e.state, _value: {
|
|
5153
5165
|
css: "data.css"
|
|
5154
5166
|
}, set: e.set, offset: e.fixed ? 0 : e.width } }) : e.tab === "fields" ? t("Fields", { attrs: { _document: e.state, "crm-service": e.extensionTabType, _value: {
|
|
5155
5167
|
css: "data.css"
|
|
@@ -5157,7 +5169,7 @@ var Y2 = function() {
|
|
|
5157
5169
|
externalReferences: "externalReferences",
|
|
5158
5170
|
clients: "clients",
|
|
5159
5171
|
articles: "articles"
|
|
5160
|
-
} }, on: { input: ({ key: a, value:
|
|
5172
|
+
} }, 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: {
|
|
5161
5173
|
term: "data.terms",
|
|
5162
5174
|
series: "docNumber.series",
|
|
5163
5175
|
tags: "tags",
|
|
@@ -5167,24 +5179,24 @@ var Y2 = function() {
|
|
|
5167
5179
|
useVat: "data.formSettings.useVat",
|
|
5168
5180
|
vatType: "data.formSettings.vatType",
|
|
5169
5181
|
rounding: "data.formSettings.rounding"
|
|
5170
|
-
}, offset: e.fixed ? 0 : e.width }, on: { input: ({ key: a, value:
|
|
5182
|
+
}, offset: e.fixed ? 0 : 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) {
|
|
5171
5183
|
e.showGuide = !1;
|
|
5172
5184
|
} } }) : e._e()], 1)])]);
|
|
5173
|
-
},
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5185
|
+
}, ti = [], ii = /* @__PURE__ */ d(
|
|
5186
|
+
X2,
|
|
5187
|
+
ei,
|
|
5188
|
+
ti,
|
|
5177
5189
|
!1,
|
|
5178
5190
|
null,
|
|
5179
|
-
"
|
|
5191
|
+
"334d1b63"
|
|
5180
5192
|
);
|
|
5181
|
-
const
|
|
5193
|
+
const ai = ii.exports, ae = (i, e, t = "$children") => {
|
|
5182
5194
|
if (!i)
|
|
5183
5195
|
return;
|
|
5184
5196
|
e(i);
|
|
5185
5197
|
const a = i[t];
|
|
5186
|
-
!a && !Array.isArray(a) || a.forEach((
|
|
5187
|
-
},
|
|
5198
|
+
!a && !Array.isArray(a) || a.forEach((n) => ae(n, e));
|
|
5199
|
+
}, ni = {
|
|
5188
5200
|
i18nOptions: {
|
|
5189
5201
|
namespaces: "DocumentFormContainer",
|
|
5190
5202
|
messages: {
|
|
@@ -5200,18 +5212,18 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
|
|
|
5200
5212
|
},
|
|
5201
5213
|
name: "DocumentFormContainer",
|
|
5202
5214
|
components: {
|
|
5203
|
-
WithDimensions:
|
|
5204
|
-
DragList:
|
|
5205
|
-
DragItem:
|
|
5206
|
-
DynamicChapter:
|
|
5207
|
-
DocumentFormMenu:
|
|
5208
|
-
DynamicBlock:
|
|
5209
|
-
DocumentFormViewRadio:
|
|
5210
|
-
DocumentFormNav:
|
|
5211
|
-
DocumentDrawer:
|
|
5212
|
-
DocumentStyleContainer:
|
|
5215
|
+
WithDimensions: qe,
|
|
5216
|
+
DragList: N,
|
|
5217
|
+
DragItem: j,
|
|
5218
|
+
DynamicChapter: Ne,
|
|
5219
|
+
DocumentFormMenu: ai,
|
|
5220
|
+
DynamicBlock: Wt,
|
|
5221
|
+
DocumentFormViewRadio: Ht,
|
|
5222
|
+
DocumentFormNav: Vt,
|
|
5223
|
+
DocumentDrawer: Lt,
|
|
5224
|
+
DocumentStyleContainer: je,
|
|
5213
5225
|
simplebar: _,
|
|
5214
|
-
LogoBanner:
|
|
5226
|
+
LogoBanner: Yt,
|
|
5215
5227
|
IsPremium: $
|
|
5216
5228
|
},
|
|
5217
5229
|
mixins: [w],
|
|
@@ -5316,29 +5328,29 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
|
|
|
5316
5328
|
var e, t;
|
|
5317
5329
|
i && (Object.keys(((t = (e = this._document._doc) == null ? void 0 : e.data) == null ? void 0 : t.packageGroups) || []).forEach(
|
|
5318
5330
|
(a) => {
|
|
5319
|
-
this._document._doc.data.packageGroups[a].packages.forEach((
|
|
5331
|
+
this._document._doc.data.packageGroups[a].packages.forEach((s, o) => {
|
|
5320
5332
|
this.setFormValue({
|
|
5321
5333
|
key: `data.packageGroups.${a}.packages[${o}].data.prices.currency`,
|
|
5322
5334
|
value: i
|
|
5323
5335
|
});
|
|
5324
5336
|
});
|
|
5325
5337
|
}
|
|
5326
|
-
), this._document.allArticles.forEach((a,
|
|
5327
|
-
const
|
|
5328
|
-
this.setFormValue({ key:
|
|
5338
|
+
), this._document.allArticles.forEach((a, n) => {
|
|
5339
|
+
const s = `articles[${n}].currency`;
|
|
5340
|
+
this.setFormValue({ key: s, value: i });
|
|
5329
5341
|
}));
|
|
5330
5342
|
},
|
|
5331
5343
|
async externalReferences(i) {
|
|
5332
5344
|
await Promise.all(
|
|
5333
5345
|
(i || []).map(async ({ service: e, type: t, typeId: a }) => {
|
|
5334
5346
|
if (t && a && e && this.$store.getters["settings/isAuthenticatedCRM"](e)) {
|
|
5335
|
-
const { data:
|
|
5347
|
+
const { data: n } = await T.getFields(
|
|
5336
5348
|
e,
|
|
5337
5349
|
{ type: t, typeId: a, populated: !0 }
|
|
5338
5350
|
);
|
|
5339
5351
|
this.setFormValue({
|
|
5340
5352
|
key: "data.fields",
|
|
5341
|
-
value: { ...this._document.fields, ...
|
|
5353
|
+
value: { ...this._document.fields, ...n }
|
|
5342
5354
|
});
|
|
5343
5355
|
}
|
|
5344
5356
|
})
|
|
@@ -5347,11 +5359,11 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
|
|
|
5347
5359
|
},
|
|
5348
5360
|
methods: {
|
|
5349
5361
|
onAddBlockMount(i, e) {
|
|
5350
|
-
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() =>
|
|
5362
|
+
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => ot(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
|
|
5351
5363
|
},
|
|
5352
5364
|
onBlockToggleVisible(i, e) {
|
|
5353
5365
|
const a = [...this.readLayout].findIndex(
|
|
5354
|
-
(
|
|
5366
|
+
(n) => n.nodeId === i.nodeId
|
|
5355
5367
|
);
|
|
5356
5368
|
a !== -1 && this.setFormValue({
|
|
5357
5369
|
key: `template.views.read.nodes[${a}].isVisible`,
|
|
@@ -5371,10 +5383,10 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
|
|
|
5371
5383
|
const a = i.itemId.split("-")[1];
|
|
5372
5384
|
this.removePackageGroup(a);
|
|
5373
5385
|
} else
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
this.removeFormKeyValue(`${
|
|
5377
|
-
let o =
|
|
5386
|
+
ae(i, (n) => {
|
|
5387
|
+
n.value && Object.values(n.value).forEach((s) => {
|
|
5388
|
+
this.removeFormKeyValue(`${s}`);
|
|
5389
|
+
let o = s.replace(
|
|
5378
5390
|
/^data.(?!properties)/g,
|
|
5379
5391
|
"data.properties."
|
|
5380
5392
|
);
|
|
@@ -5385,8 +5397,8 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
|
|
|
5385
5397
|
});
|
|
5386
5398
|
}, "children");
|
|
5387
5399
|
I([this.nestedReadLayout[e]]).forEach((a) => {
|
|
5388
|
-
const
|
|
5389
|
-
this.removeFormValue(`template.views.read.nodes[${
|
|
5400
|
+
const n = this.readLayout.findIndex((s) => s.nodeId === a.nodeId);
|
|
5401
|
+
this.removeFormValue(`template.views.read.nodes[${n}]`);
|
|
5390
5402
|
});
|
|
5391
5403
|
},
|
|
5392
5404
|
removePackageGroup(i) {
|
|
@@ -5395,7 +5407,7 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
|
|
|
5395
5407
|
this.setFormValue({
|
|
5396
5408
|
key: "articles",
|
|
5397
5409
|
value: u(this._document, "_doc.articles", []).filter(
|
|
5398
|
-
({ packageId:
|
|
5410
|
+
({ packageId: n }) => n !== a.packageId
|
|
5399
5411
|
)
|
|
5400
5412
|
});
|
|
5401
5413
|
});
|
|
@@ -5411,38 +5423,38 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
|
|
|
5411
5423
|
if (e !== null && t !== null) {
|
|
5412
5424
|
if (e === t)
|
|
5413
5425
|
return;
|
|
5414
|
-
const
|
|
5426
|
+
const n = xe(
|
|
5415
5427
|
this.nestedReadLayout,
|
|
5416
5428
|
e,
|
|
5417
5429
|
t
|
|
5418
5430
|
);
|
|
5419
5431
|
this.setFormValue({
|
|
5420
5432
|
key: "template.views.read.nodes",
|
|
5421
|
-
value: I(
|
|
5433
|
+
value: I(n)
|
|
5422
5434
|
});
|
|
5423
5435
|
} else if (!e && t !== null) {
|
|
5424
|
-
const { sectionKey:
|
|
5436
|
+
const { sectionKey: n, createNewSection: s, addValidation: o, contentData: l } = a, {
|
|
5425
5437
|
readView: r,
|
|
5426
5438
|
validation: c,
|
|
5427
5439
|
data: g,
|
|
5428
5440
|
onAddFnName: S = "onAdd"
|
|
5429
|
-
} =
|
|
5430
|
-
sectionKey:
|
|
5441
|
+
} = s({
|
|
5442
|
+
sectionKey: n,
|
|
5431
5443
|
document: this._document,
|
|
5432
5444
|
contentData: l
|
|
5433
5445
|
});
|
|
5434
5446
|
o({ validation: c, data: g });
|
|
5435
|
-
const M =
|
|
5447
|
+
const M = we({ tree: r }), oe = [
|
|
5436
5448
|
...this.nestedReadLayout.slice(0, t),
|
|
5437
5449
|
...M,
|
|
5438
5450
|
...this.nestedReadLayout.slice(t)
|
|
5439
5451
|
];
|
|
5440
5452
|
this.setFormValue({
|
|
5441
5453
|
key: "template.views.read.nodes",
|
|
5442
|
-
value: I(
|
|
5454
|
+
value: I(oe)
|
|
5443
5455
|
});
|
|
5444
|
-
const [{ nodeId:
|
|
5445
|
-
this.onAddRedis[
|
|
5456
|
+
const [{ nodeId: le }] = r;
|
|
5457
|
+
this.onAddRedis[le] = S;
|
|
5446
5458
|
}
|
|
5447
5459
|
},
|
|
5448
5460
|
shouldAnimateDrop(i) {
|
|
@@ -5450,25 +5462,31 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
|
|
|
5450
5462
|
}
|
|
5451
5463
|
}
|
|
5452
5464
|
};
|
|
5453
|
-
var
|
|
5465
|
+
var si = function() {
|
|
5454
5466
|
var e = this, t = e._self._c;
|
|
5455
5467
|
return t("div", { staticClass: "h-screen overflow-auto" }, [t("div", { staticClass: "relative flex min-h-screen flex-row bg-gray-200", class: {
|
|
5456
5468
|
"is-edit-view": e.isEditView,
|
|
5457
5469
|
"is-empty-list": !e.nestedReadLayout.length
|
|
5458
|
-
} }, [t("DocumentFormNav", { attrs: { close: e.close }
|
|
5459
|
-
return
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
}
|
|
5463
|
-
return t("div", {
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5470
|
+
} }, [t("DocumentFormNav", { attrs: { close: e.close }, scopedSlots: e._u([{ key: "left", fn: function() {
|
|
5471
|
+
return [t("div", { staticClass: "relative flex w-full items-center space-x-4" }, [t("div", { staticClass: "rounded-md bg-gray-300 sm:bg-transparent" }, [e.close ? t("CButton", { staticClass: "d-nav-button position left close h-[2.25em] w-[2.25em] text-base backdrop-blur-[25px]", attrs: { "icon-props": { size: e.mq === "sm" ? 16 : 20 }, size: "normal", icon: "x", type: "none", pattern: "tertiary" }, on: { click: e.close } }) : e._e()], 1), e.goBack && e.mq !== "sm" ? t("CButton", { staticClass: "mr-2 h-[2.25em] w-[2.25em] backdrop-blur-[25px]", attrs: { "icon-props": { size: e.mq === "sm" ? 16 : 20 }, type: "none", pattern: "tertiary", icon: "arrow-left" }, on: { click: e.goBack } }) : e._e(), t("div", { staticClass: "relative hidden rounded-md bg-gray-300 sm:flex sm:bg-transparent" }, [t("CButton", { staticStyle: { width: "36px", height: "36px", "padding-left": "14px", "padding-right": "14px" }, attrs: { size: "normal", type: "none", pattern: "tertiary", "icon-props": { size: 20 }, thinner: "", icon: "sidebar" }, on: { click: function(a) {
|
|
5472
|
+
return a.stopPropagation(), e.drawerState.toggleLeft.apply(null, arguments);
|
|
5473
|
+
} } })], 1), e._t("nav-left")], 2)];
|
|
5474
|
+
}, proxy: !0 }, { key: "center", fn: function() {
|
|
5475
|
+
return [t("div", { staticClass: "relative" }, [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) {
|
|
5476
|
+
return e.$emit("update:view", a);
|
|
5477
|
+
} } }), !e.isEditView && !["sm", "md", "lg"].includes(e.mq) ? t("div", { staticClass: "absolute inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 backdrop-blur-lg backdrop-saturate-[180%]", staticStyle: { left: "calc(100% + calc(1.25 * var(--rem)))" } }, e._l(["desktop", "tablet", "mobile"], function(a) {
|
|
5478
|
+
return t("div", { key: a, staticClass: "pointer inline-flex select-none items-center justify-center rounded-md p-[10px] font-semibold text-gray-700 transition duration-150 ease-linear", style: e.previewDevice === a && {
|
|
5479
|
+
boxShadow: "0 1px 1px rgba(0, 0, 0, 0.2)",
|
|
5480
|
+
backgroundColor: "hsl(0, 0%, 100%)",
|
|
5481
|
+
color: "hsl(0, 0%, 7%)"
|
|
5482
|
+
}, on: { click: function(n) {
|
|
5483
|
+
e.previewDevice = a;
|
|
5484
|
+
} } }, [t("CIcon", { attrs: { type: a, size: "16" } })], 1);
|
|
5485
|
+
}), 0) : e._e()], 1)];
|
|
5486
|
+
}, proxy: !0 }, { key: "right", fn: function() {
|
|
5487
|
+
return [e._t("nav-right")];
|
|
5488
|
+
}, proxy: !0 }], null, !0) }), t("DocumentFormMenu", { directives: [{ name: "show", rawName: "v-show", value: e.drawerState.showLeft, expression: "drawerState.showLeft" }], attrs: { state: e._document, "on-added-block": ({ nodeId: a, onAddFnName: n = "onAdd" }) => {
|
|
5489
|
+
e.onAddRedis[a] = n;
|
|
5472
5490
|
}, set: e.setFormValue, "remove-value": e.removeFormValue, template: e.docTemplate, fixed: e.drawerState.isFixed, "can-use-blocks": e.isTemplateEditable, "is-legacy-template": e.isLegacyTemplate, width: e.sidebarWidth }, on: { close: function(a) {
|
|
5473
5491
|
e.drawerState.showLeft = !1;
|
|
5474
5492
|
} } }), t("div", { ref: "scroll-body", staticClass: "doc-scroll-container flex w-full justify-center", class: {
|
|
@@ -5484,12 +5502,12 @@ var ti = function() {
|
|
|
5484
5502
|
e.isEditView && "mx-auto min-h-full w-[1200px] max-w-full overflow-hidden rounded-md px-0 shadow-[0_20px_35px_-8px_hsla(0,0%,0%,0.27)] md:max-w-[90%]"
|
|
5485
5503
|
] }, [!e.nestedReadLayout.length && !e.isFixedSidebar ? t("div", { staticClass: "drag-drop-empty-list is-placeholder text-gray-400" }, [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: "h-full w-full" }, [t("WithDimensions", { attrs: { "provide-device": !0 }, on: { width: function(a) {
|
|
5486
5504
|
e.parentSize.width = a;
|
|
5487
|
-
} }, scopedSlots: e._u([{ key: "default", fn: function({ width: a, height:
|
|
5488
|
-
var
|
|
5489
|
-
return t("DocumentStyleContainer", { staticClass: "relative h-full w-full", style: {
|
|
5505
|
+
} }, scopedSlots: e._u([{ key: "default", fn: function({ width: a, height: n }) {
|
|
5506
|
+
var s, o;
|
|
5507
|
+
return [t("DocumentStyleContainer", { staticClass: "relative h-full w-full", style: {
|
|
5490
5508
|
"--vw": `${a / 100}px`,
|
|
5491
|
-
"--vh": `clamp(7.5px, ${
|
|
5492
|
-
}, attrs: { "heading-color": e.headingColor, "input-style": ((o = (
|
|
5509
|
+
"--vh": `clamp(7.5px, ${n / 100}px, ${e.isEditView ? 7.5 : 9}px)`
|
|
5510
|
+
}, attrs: { "heading-color": e.headingColor, "input-style": ((o = (s = e._document) == null ? void 0 : s.data) == null ? void 0 : o.css) || null } }, [e.nestedReadLayout ? t("DragList", { staticClass: "drag-list", attrs: { handle: ".NO-SELECTOR", "drop-placeholder": { className: "drag-drop-placeholder" }, "should-animate-drop": e.shouldAnimateDrop, group: "blocks", "ghost-class": "drag-drop-ghost", "drag-class": "is-dragged", "group-name": "document-blocks", "non-drag-area-selector": ".no-drag", "drag-handle-selector": ".drag-item" }, on: { "drag-start": function(l) {
|
|
5493
5511
|
e.isDragging = !0;
|
|
5494
5512
|
}, "drag-end": function(l) {
|
|
5495
5513
|
e.isDragging = !1;
|
|
@@ -5517,24 +5535,24 @@ var ti = function() {
|
|
|
5517
5535
|
}, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: c, value: g, options: S }) => e.setFormValue({ key: c, value: g, options: S }), "on-remove": ({ key: c }) => e.removeFormValue(c), "on-mount": (c) => e.onAddBlockMount(l.nodeId, c) } })], 1)], 1);
|
|
5518
5536
|
}), 1) : e._e(), e.canShowBanner ? t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ isProLike: l }) {
|
|
5519
5537
|
return [!e.isEditView && !l ? t("LogoBanner", { attrs: { position: "sticky" } }) : e._e()];
|
|
5520
|
-
} }], null, !0) }) : e._e()], 1);
|
|
5538
|
+
} }], null, !0) }) : e._e()], 1)];
|
|
5521
5539
|
} }]) })], 1)], 1)]), t("DocumentDrawer", { key: "settingsDrawer", attrs: { id: "settingsDrawer", open: !!e.drawerState.openSection, fixed: !0, position: "right" }, on: { "update:open": function(a) {
|
|
5522
5540
|
e.drawerState.openSection = null;
|
|
5523
5541
|
} } }, [t("CButton", { staticClass: "absolute right-2 top-2", attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: function(a) {
|
|
5524
5542
|
e.drawerState.openSection = null;
|
|
5525
5543
|
} } }), t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
|
|
5526
|
-
},
|
|
5544
|
+
}, oi = [function() {
|
|
5527
5545
|
var i = this, e = i._self._c;
|
|
5528
5546
|
return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
|
|
5529
|
-
}],
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5547
|
+
}], li = /* @__PURE__ */ d(
|
|
5548
|
+
ni,
|
|
5549
|
+
si,
|
|
5550
|
+
oi,
|
|
5533
5551
|
!1,
|
|
5534
5552
|
null,
|
|
5535
|
-
"
|
|
5553
|
+
"8032bdc2"
|
|
5536
5554
|
);
|
|
5537
|
-
const
|
|
5555
|
+
const ri = li.exports, ci = {
|
|
5538
5556
|
name: "DocumentSend",
|
|
5539
5557
|
i18nOptions: {
|
|
5540
5558
|
namespaces: "documentSend",
|
|
@@ -5558,12 +5576,12 @@ const si = ai.exports, ni = {
|
|
|
5558
5576
|
}
|
|
5559
5577
|
},
|
|
5560
5578
|
components: {
|
|
5561
|
-
AddBlock:
|
|
5562
|
-
Drawer:
|
|
5563
|
-
SendForm:
|
|
5564
|
-
CCheckbox:
|
|
5565
|
-
CIcon:
|
|
5566
|
-
CButton:
|
|
5579
|
+
AddBlock: ie,
|
|
5580
|
+
Drawer: ee,
|
|
5581
|
+
SendForm: lt,
|
|
5582
|
+
CCheckbox: K,
|
|
5583
|
+
CIcon: be,
|
|
5584
|
+
CButton: ke,
|
|
5567
5585
|
IsPremium: $,
|
|
5568
5586
|
IsPremiumPreStep: L
|
|
5569
5587
|
},
|
|
@@ -5655,7 +5673,7 @@ const si = ai.exports, ni = {
|
|
|
5655
5673
|
}
|
|
5656
5674
|
}
|
|
5657
5675
|
};
|
|
5658
|
-
var
|
|
5676
|
+
var di = function() {
|
|
5659
5677
|
var e = this, t = e._self._c;
|
|
5660
5678
|
return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
|
|
5661
5679
|
e.isOpen = a;
|
|
@@ -5663,30 +5681,34 @@ var oi = function() {
|
|
|
5663
5681
|
"is-fullscreen": e.mq === "sm"
|
|
5664
5682
|
} }, [t("CButton", { staticStyle: { position: "absolute", right: "1em", top: "1em", "z-index": "99" }, attrs: { circle: "", icon: "x", pattern: "secondary" }, on: { click: function(a) {
|
|
5665
5683
|
e.isOpen = !1;
|
|
5666
|
-
} } }), t("SendForm", { attrs: { _document: e._document, _value: e._value, "set-form-value": e.setFormValue, "remove-form-value": e.removeFormValue, "on-save-document": e.onSaveDoc, "use-scroll": "" }
|
|
5667
|
-
return [t("CButton", {
|
|
5684
|
+
} } }), t("SendForm", { attrs: { _document: e._document, _value: e._value, "set-form-value": e.setFormValue, "remove-form-value": e.removeFormValue, "on-save-document": e.onSaveDoc, "use-scroll": "" }, scopedSlots: e._u([{ key: "send", fn: function() {
|
|
5685
|
+
return [e.isPublicForm ? t("CButton", { staticStyle: { height: "48px" }, attrs: { type: "secondary", wide: "" }, on: { click: e.onSaveDocument } }, [e._v(" " + e._s(e.$t("signupToSend")) + " ")]) : e._e()];
|
|
5686
|
+
}, proxy: !0 }, { key: "footer", fn: function() {
|
|
5687
|
+
return [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: { for: "checkbox-save-as-temp" } }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a }) {
|
|
5688
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
|
|
5689
|
+
return [t("div", { staticClass: "flex items-center", on: { click: (s) => e.onClickSaveAsTemplate({
|
|
5690
|
+
event: s,
|
|
5691
|
+
can: a,
|
|
5692
|
+
open: n
|
|
5693
|
+
}) } }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(s) {
|
|
5694
|
+
e.saveTemplate = s;
|
|
5695
|
+
}, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)];
|
|
5696
|
+
} }], null, !0) })];
|
|
5697
|
+
} }], null, !1, 4212506376) })], 1)];
|
|
5698
|
+
}, proxy: !0 }], null, !1, 4264192666) }, [e.hasAnswerBlock ? e._e() : t("div", { key: "1", staticClass: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3" }, [t("div", [t("CIcon", { staticClass: "-mt-1 text-red-600", attrs: { type: "error", size: "18" } })], 1), t("div", [t("div", { staticClass: "pl-2" }, [t("div", { staticClass: "text-sm font-semibold text-red-600", domProps: { textContent: e._s(e.$t("signMissingTitle")) } }), t("div", { staticClass: "mb-4 text-sm text-red-600 text-opacity-80" }, [e._v(" " + e._s(e.$t("signMissingText")) + " ")])]), t("AddBlock", { attrs: { set: e.setFormValue }, scopedSlots: e._u([{ key: "default", fn: function({ addBlock: a }) {
|
|
5699
|
+
return [t("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small" }, on: { click: function(n) {
|
|
5668
5700
|
return a({ sectionKey: "answer", document: e._document });
|
|
5669
5701
|
} } }, [e._v(" " + e._s(e.$t("signMissingAdd")) + " ")])];
|
|
5670
|
-
} }], null, !1, 1245343054) })], 1)])
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
open: s
|
|
5676
|
-
}) } }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(n) {
|
|
5677
|
-
e.saveTemplate = n;
|
|
5678
|
-
}, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)];
|
|
5679
|
-
} }], null, !0) })];
|
|
5680
|
-
} }], null, !1, 3857209736) })], 1)], 1)], 1)]) : e._e();
|
|
5681
|
-
}, li = [], ri = /* @__PURE__ */ d(
|
|
5682
|
-
ni,
|
|
5683
|
-
oi,
|
|
5684
|
-
li,
|
|
5702
|
+
} }], null, !1, 1245343054) })], 1)])])], 1)]) : e._e();
|
|
5703
|
+
}, pi = [], ui = /* @__PURE__ */ d(
|
|
5704
|
+
ci,
|
|
5705
|
+
di,
|
|
5706
|
+
pi,
|
|
5685
5707
|
!1,
|
|
5686
5708
|
null,
|
|
5687
|
-
"
|
|
5709
|
+
"e107ef52"
|
|
5688
5710
|
);
|
|
5689
|
-
const
|
|
5711
|
+
const mi = ui.exports, hi = {
|
|
5690
5712
|
i18nOptions: {
|
|
5691
5713
|
namespaces: "DocumentTemplateFormModal",
|
|
5692
5714
|
messages: {
|
|
@@ -5715,6 +5737,11 @@ const ci = ri.exports, di = {
|
|
|
5715
5737
|
}
|
|
5716
5738
|
},
|
|
5717
5739
|
name: "DocumentTemplateFormModal",
|
|
5740
|
+
components: {
|
|
5741
|
+
CCallout: ct,
|
|
5742
|
+
CCheckbox: K,
|
|
5743
|
+
CField: O
|
|
5744
|
+
},
|
|
5718
5745
|
props: {
|
|
5719
5746
|
document: {
|
|
5720
5747
|
type: Object,
|
|
@@ -5829,7 +5856,7 @@ const ci = ri.exports, di = {
|
|
|
5829
5856
|
}
|
|
5830
5857
|
}
|
|
5831
5858
|
};
|
|
5832
|
-
var
|
|
5859
|
+
var fi = function() {
|
|
5833
5860
|
var e = this, t = e._self._c;
|
|
5834
5861
|
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, size: "medium" }, on: { input: function(a) {
|
|
5835
5862
|
e.name = a;
|
|
@@ -5838,24 +5865,24 @@ var pi = function() {
|
|
|
5838
5865
|
}, 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) {
|
|
5839
5866
|
e.keepClients = a;
|
|
5840
5867
|
}, 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);
|
|
5841
|
-
},
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5868
|
+
}, gi = [], Ci = /* @__PURE__ */ d(
|
|
5869
|
+
hi,
|
|
5870
|
+
fi,
|
|
5871
|
+
gi,
|
|
5845
5872
|
!1,
|
|
5846
5873
|
null,
|
|
5847
|
-
"
|
|
5874
|
+
"f4bb8ca4"
|
|
5848
5875
|
);
|
|
5849
|
-
const
|
|
5850
|
-
function
|
|
5876
|
+
const ne = Ci.exports;
|
|
5877
|
+
function vi(i, e, t) {
|
|
5851
5878
|
return i === i && (t !== void 0 && (i = i <= t ? i : t), e !== void 0 && (i = i >= e ? i : e)), i;
|
|
5852
5879
|
}
|
|
5853
|
-
var
|
|
5854
|
-
function
|
|
5855
|
-
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = F(t), t = t === t ? t : 0), e !== void 0 && (e = F(e), e = e === e ? e : 0),
|
|
5880
|
+
var yi = vi, xi = yi, F = Je;
|
|
5881
|
+
function wi(i, e, t) {
|
|
5882
|
+
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = F(t), t = t === t ? t : 0), e !== void 0 && (e = F(e), e = e === e ? e : 0), xi(F(i), e, t);
|
|
5856
5883
|
}
|
|
5857
|
-
var
|
|
5858
|
-
const
|
|
5884
|
+
var bi = wi;
|
|
5885
|
+
const ki = /* @__PURE__ */ Y(bi), _i = {
|
|
5859
5886
|
name: "RemainingTrialButton",
|
|
5860
5887
|
components: { IsPremium: $ },
|
|
5861
5888
|
i18nOptions: {
|
|
@@ -5887,44 +5914,48 @@ const yi = /* @__PURE__ */ q(vi), xi = {
|
|
|
5887
5914
|
},
|
|
5888
5915
|
mixins: [w],
|
|
5889
5916
|
methods: {
|
|
5890
|
-
clamp:
|
|
5917
|
+
clamp: ki
|
|
5891
5918
|
}
|
|
5892
5919
|
};
|
|
5893
|
-
var
|
|
5920
|
+
var Li = function() {
|
|
5894
5921
|
var e = this, t = e._self._c;
|
|
5895
5922
|
return t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({
|
|
5896
5923
|
accountType: a,
|
|
5897
|
-
trialDaysLeft:
|
|
5898
|
-
openUpgradeModal:
|
|
5924
|
+
trialDaysLeft: n,
|
|
5925
|
+
openUpgradeModal: s,
|
|
5899
5926
|
initialFreePremiumDays: o
|
|
5900
5927
|
}) {
|
|
5901
|
-
return [a === "trial" && e.mq !== "sm" ? t("v-popover", { attrs: { "popover-inner-class": "bg-white rounded-md shadow-xl" }
|
|
5902
|
-
|
|
5903
|
-
}
|
|
5928
|
+
return [a === "trial" && e.mq !== "sm" ? t("v-popover", { attrs: { "popover-inner-class": "bg-white rounded-md shadow-xl" }, scopedSlots: e._u([{ key: "popover", fn: function() {
|
|
5929
|
+
return [t("div", { staticClass: "w-56 p-4 text-sm" }, [t("div", { staticClass: "font-semibold" }, [e._v(" " + e._s(e.$t("title.1")) + " "), t("span", { staticClass: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, [e._v(e._s(e.$t("title.2")))]), e._v(" " + e._s(e.$t("title.3", { trialDaysLeft: n })) + ". ")]), t("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("title.4")) + " "), t("span", { staticClass: "inline-flex rounded-md border border-gray-300 bg-gray-200 px-1.5 py-[3px] text-xs font-semibold leading-none text-gray-600" }, [e._v(e._s(e.$t("title.5")))]), e._v(". ")]), t("div", { staticClass: "mt-5" }, [t("CButton", { directives: [{ name: "close-popover", rawName: "v-close-popover" }], attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: s } }, [e._v(" " + e._s(e.$t("actionButton")) + " ")])], 1)])];
|
|
5930
|
+
}, proxy: !0 }], null, !0) }, [t("div", { staticClass: "relative mr-2 flex h-9 cursor-pointer select-none flex-col justify-center rounded-md bg-gray-200/50 px-2 text-xs font-semibold backdrop-blur-lg backdrop-saturate-150" }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$tc("_common:day", { count: n })) + " " + e._s(e.$t("button")) + " ")]), t("div", { staticClass: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, [t("div", { staticClass: "to-primary-600 absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500", style: {
|
|
5931
|
+
width: e.clamp(n / o * 100, 0, 100) + "%"
|
|
5932
|
+
} })])])]) : e._e()];
|
|
5904
5933
|
} }]) });
|
|
5905
|
-
},
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5934
|
+
}, $i = [], Si = /* @__PURE__ */ d(
|
|
5935
|
+
_i,
|
|
5936
|
+
Li,
|
|
5937
|
+
$i,
|
|
5909
5938
|
!1,
|
|
5910
5939
|
null,
|
|
5911
|
-
"
|
|
5940
|
+
"f079a701"
|
|
5912
5941
|
);
|
|
5913
|
-
const
|
|
5942
|
+
const Ti = Si.exports, V = q.observable({
|
|
5914
5943
|
canEdit: !1,
|
|
5915
5944
|
isForm: !0,
|
|
5916
5945
|
setFormValue: null,
|
|
5917
5946
|
removeFormValue: null
|
|
5918
|
-
}),
|
|
5947
|
+
}), Di = {
|
|
5919
5948
|
name: "DocumentForm",
|
|
5920
5949
|
components: {
|
|
5921
|
-
DocumentFormContainer:
|
|
5950
|
+
DocumentFormContainer: ri,
|
|
5922
5951
|
IsPremium: $,
|
|
5923
5952
|
IsPremiumPreStep: L,
|
|
5924
|
-
DocumentSend:
|
|
5925
|
-
RemainingTrialButton:
|
|
5953
|
+
DocumentSend: mi,
|
|
5954
|
+
RemainingTrialButton: Ti,
|
|
5955
|
+
CDropdown: P,
|
|
5956
|
+
CDropdownItem: E
|
|
5926
5957
|
},
|
|
5927
|
-
mixins: [
|
|
5958
|
+
mixins: [rt, w],
|
|
5928
5959
|
provide: () => ({ viewSettings: V }),
|
|
5929
5960
|
props: {
|
|
5930
5961
|
document: {
|
|
@@ -6011,7 +6042,7 @@ const _i = ki.exports, V = E.observable({
|
|
|
6011
6042
|
},
|
|
6012
6043
|
async saveAsTemplate() {
|
|
6013
6044
|
this.document && this.$modal.show(
|
|
6014
|
-
|
|
6045
|
+
ne,
|
|
6015
6046
|
{
|
|
6016
6047
|
document: this.document,
|
|
6017
6048
|
onSaveTemplate: this.onSaveTemplate
|
|
@@ -6028,30 +6059,34 @@ const _i = ki.exports, V = E.observable({
|
|
|
6028
6059
|
}
|
|
6029
6060
|
}
|
|
6030
6061
|
};
|
|
6031
|
-
var
|
|
6062
|
+
var Vi = function() {
|
|
6032
6063
|
var e = this, t = e._self._c;
|
|
6033
6064
|
return e.document ? t("div", { staticClass: "flex w-screen flex-col 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) {
|
|
6034
6065
|
e.view = a;
|
|
6035
|
-
} }
|
|
6036
|
-
return [t("
|
|
6037
|
-
return [t("
|
|
6038
|
-
return [t("div", { staticClass: "
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
callback: e.
|
|
6046
|
-
})
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
} } })
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6066
|
+
} }, scopedSlots: e._u([{ key: "nav-right", fn: function() {
|
|
6067
|
+
return [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a, canCreateTemplate: n }) {
|
|
6068
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
6069
|
+
return [t("div", { key: e.canDoActions, staticClass: "inline-flex flex-1 justify-end space-x-5" }, [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: o }) {
|
|
6070
|
+
return [t("div", { staticClass: "rounded-md bg-gray-300 sm:bg-transparent" }, [t("CDropdown", { attrs: { disabled: !e.canDoActions }, scopedSlots: e._u([{ key: "trigger", fn: function() {
|
|
6071
|
+
return [t("CButton", { staticClass: "d-nav-button position right", staticStyle: { width: "36px", height: "36px", "padding-left": "14px", "padding-right": "14px" }, attrs: { "icon-props": {
|
|
6072
|
+
size: e.mq === "sm" ? 16 : 20,
|
|
6073
|
+
strokeWidth: 2
|
|
6074
|
+
}, size: "medium", type: "none", pattern: "tertiary", thinner: "", icon: "save" } })];
|
|
6075
|
+
}, proxy: !0 }], null, !0) }, [t("CDropdownItem", { attrs: { "icon-props": { stroke: "hsl(205, 100%, 50%)" }, "icon-left": "save" }, on: { click: function(l) {
|
|
6076
|
+
a || e.document.id ? e.submitSave() : s({ callback: e.submitSave });
|
|
6077
|
+
} } }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() })) + " ")]), t("CDropdownItem", { attrs: { disabled: e.isLoading, "icon-left": "template-color" }, on: { click: function(l) {
|
|
6078
|
+
n ? e.saveAsTemplate() : o({
|
|
6079
|
+
callback: e.saveAsTemplate
|
|
6080
|
+
});
|
|
6081
|
+
} } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")])], 1)], 1)];
|
|
6082
|
+
} }], null, !0) }), e._t("nav-right-action", function() {
|
|
6083
|
+
return [t("RemainingTrialButton"), t("div", { staticClass: "buttons has-addons whitespace-nowrap" }, [t("CButton", { ref: "sendButton", staticClass: "d-nav-button position right !h-full", class: e.mq === "sm" && "w-9", attrs: { disabled: !e.canDoActions, loading: e.isLoading, "data-onboarding": "send-button", size: "small", type: "secondary", icon: e.mq === "sm" ? "send" : "", label: e.mq === "sm" ? "" : e.$t("_common:reviewSend") }, on: { click: function(o) {
|
|
6084
|
+
a || !e.doConsumeQuota || e.document.id ? e.openSendModal() : s({ callback: e.openSendModal });
|
|
6085
|
+
} } })], 1)];
|
|
6086
|
+
})], 2)];
|
|
6087
|
+
} }], null, !0) })];
|
|
6088
|
+
} }], null, !1, 989398557) })];
|
|
6089
|
+
}, proxy: !0 }], null, !1, 3195184598) }), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
|
|
6055
6090
|
expiresAt: "data.expiresAt",
|
|
6056
6091
|
personalMessage: "data.personalMessage",
|
|
6057
6092
|
defaultAnswerMethod: "data.defaultAnswerMethod",
|
|
@@ -6059,15 +6094,15 @@ var $i = function() {
|
|
|
6059
6094
|
reminders: "data.reminders",
|
|
6060
6095
|
name: "data.name"
|
|
6061
6096
|
}, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })], 1) : e._e();
|
|
6062
|
-
},
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6097
|
+
}, Bi = [], Mi = /* @__PURE__ */ d(
|
|
6098
|
+
Di,
|
|
6099
|
+
Vi,
|
|
6100
|
+
Bi,
|
|
6066
6101
|
!1,
|
|
6067
6102
|
null,
|
|
6068
6103
|
null
|
|
6069
6104
|
);
|
|
6070
|
-
const
|
|
6105
|
+
const Ii = Mi.exports, Fi = {
|
|
6071
6106
|
name: "DocumentFormRecent",
|
|
6072
6107
|
i18nOptions: {
|
|
6073
6108
|
namespaces: "DocumentFormRecent",
|
|
@@ -6084,7 +6119,8 @@ const Di = Ti.exports, Vi = {
|
|
|
6084
6119
|
},
|
|
6085
6120
|
components: {
|
|
6086
6121
|
IsPremium: $,
|
|
6087
|
-
IsPremiumPreStep: L
|
|
6122
|
+
IsPremiumPreStep: L,
|
|
6123
|
+
CSkeleton: dt
|
|
6088
6124
|
},
|
|
6089
6125
|
data() {
|
|
6090
6126
|
return {
|
|
@@ -6113,7 +6149,7 @@ const Di = Ti.exports, Vi = {
|
|
|
6113
6149
|
async fetchDocuments(i) {
|
|
6114
6150
|
const e = this.query ? 180 : 90, t = {
|
|
6115
6151
|
createdAt: {
|
|
6116
|
-
$gte: this.$formatDate(
|
|
6152
|
+
$gte: this.$formatDate(_e(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
|
|
6117
6153
|
},
|
|
6118
6154
|
// Only provide or if there is a search query to filter on
|
|
6119
6155
|
...this.query && {
|
|
@@ -6122,25 +6158,25 @@ const Di = Ti.exports, Vi = {
|
|
|
6122
6158
|
{
|
|
6123
6159
|
clients: {
|
|
6124
6160
|
$elemMatch: {
|
|
6125
|
-
$or: ["name", "email", "socialNo", "orgNo"].map((
|
|
6126
|
-
[
|
|
6161
|
+
$or: ["name", "email", "socialNo", "orgNo"].map((s) => ({
|
|
6162
|
+
[s]: { $regex: this.query, $options: "i" }
|
|
6127
6163
|
}))
|
|
6128
6164
|
}
|
|
6129
6165
|
}
|
|
6130
6166
|
}
|
|
6131
6167
|
]
|
|
6132
6168
|
}
|
|
6133
|
-
}, { data: a } = await
|
|
6169
|
+
}, { data: a } = await Le.getAll({
|
|
6134
6170
|
lean: !0,
|
|
6135
6171
|
filter: encodeURIComponent(JSON.stringify(t)),
|
|
6136
6172
|
fields: "clients,data.name,createdAt",
|
|
6137
6173
|
skip: i || 0,
|
|
6138
6174
|
sort: "-createdAt",
|
|
6139
6175
|
limit: 10
|
|
6140
|
-
}), { items:
|
|
6141
|
-
return
|
|
6176
|
+
}), { items: n = [] } = a || {};
|
|
6177
|
+
return n;
|
|
6142
6178
|
},
|
|
6143
|
-
onLoadDocuments:
|
|
6179
|
+
onLoadDocuments: Z(async function() {
|
|
6144
6180
|
this.isLoading = !0, this.hasItems = !0;
|
|
6145
6181
|
const e = await this.fetchDocuments();
|
|
6146
6182
|
(!e || !e.length) && (this.canFetchMore = !1), this.list = [...e || []], this.isLoading = !1;
|
|
@@ -6155,17 +6191,17 @@ const Di = Ti.exports, Vi = {
|
|
|
6155
6191
|
}
|
|
6156
6192
|
}
|
|
6157
6193
|
};
|
|
6158
|
-
var
|
|
6194
|
+
var Hi = function() {
|
|
6159
6195
|
var e = this, t = e._self._c;
|
|
6160
6196
|
return t("div", [t("div", { staticClass: "flex w-full", staticStyle: { "padding-bottom": "1em" } }, [e._t("default"), e.hasItems ? t("CInput", { staticClass: "hidden md:flex", 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) {
|
|
6161
6197
|
e.query = a;
|
|
6162
6198
|
}, expression: "query" } }) : e._e()], 2), t("div", { staticClass: "recent-list" }, [e.isLoading && !e.list.length ? e._l(3, function(a) {
|
|
6163
6199
|
return t("div", { key: a, staticClass: "recent-item placeholder" }, [t("CSkeleton", { staticClass: "recent-item-name", attrs: { width: "60%" } }), t("CSkeleton", { attrs: { width: "35%" } })], 1);
|
|
6164
|
-
}) : !e.isLoading && !e.query && !e.list.length ? t("div", { staticClass: "rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400", staticStyle: { "font-size": "15px" } }, [e._v(" " + e._s(e.$t("emptyPlaceholder")) + " ")]) : e.query && !e.isLoading && !e.list.length ? t("div", { staticClass: "text-center text-gray-400", staticStyle: { padding: "1em" } }, [e._v(" " + e._s(e.$t("noResults")) + " ")]) : [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a, canUseTemplate:
|
|
6165
|
-
return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick:
|
|
6200
|
+
}) : !e.isLoading && !e.query && !e.list.length ? t("div", { staticClass: "rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400", staticStyle: { "font-size": "15px" } }, [e._v(" " + e._s(e.$t("emptyPlaceholder")) + " ")]) : e.query && !e.isLoading && !e.list.length ? t("div", { staticClass: "text-center text-gray-400", staticStyle: { padding: "1em" } }, [e._v(" " + e._s(e.$t("noResults")) + " ")]) : [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a, canUseTemplate: n }) {
|
|
6201
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
6166
6202
|
return [t("div", e._l(e.list, function(o, l) {
|
|
6167
6203
|
return t("div", { key: o._id, staticClass: "recent-item", on: { click: function(r) {
|
|
6168
|
-
|
|
6204
|
+
n ? e.onUseDocTemplate(o._id) : s({
|
|
6169
6205
|
callback: () => e.onUseDocTemplate(o._id)
|
|
6170
6206
|
});
|
|
6171
6207
|
}, "&mouseover": function(r) {
|
|
@@ -6182,15 +6218,15 @@ var Bi = function() {
|
|
|
6182
6218
|
}), 0)];
|
|
6183
6219
|
} }], null, !0) })];
|
|
6184
6220
|
} }]) })]], 2)]);
|
|
6185
|
-
},
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6221
|
+
}, Ai = [], Pi = /* @__PURE__ */ d(
|
|
6222
|
+
Fi,
|
|
6223
|
+
Hi,
|
|
6224
|
+
Ai,
|
|
6189
6225
|
!1,
|
|
6190
6226
|
null,
|
|
6191
|
-
"
|
|
6227
|
+
"5042c114"
|
|
6192
6228
|
);
|
|
6193
|
-
const
|
|
6229
|
+
const Ei = Pi.exports, zi = /* @__PURE__ */ $e({
|
|
6194
6230
|
__name: "DocumentIcon",
|
|
6195
6231
|
props: {
|
|
6196
6232
|
isPlaceholder: { type: Boolean, default: !1 },
|
|
@@ -6202,13 +6238,13 @@ const Fi = Ii.exports, Hi = /* @__PURE__ */ _e({
|
|
|
6202
6238
|
},
|
|
6203
6239
|
emits: ["triggerOpenTemplate"],
|
|
6204
6240
|
setup(i, { emit: e }) {
|
|
6205
|
-
const t = i, a = () => e("triggerOpenTemplate"),
|
|
6241
|
+
const t = i, a = () => e("triggerOpenTemplate"), n = Se(), s = Te(), o = y(() => s.style), l = y(() => s.staticClass), r = y(() => s.class), c = y(() => s.key), g = y(() => s.attrs), S = y(
|
|
6206
6242
|
() => m.t("_common:empty", { thing: m.t("_common:template") })
|
|
6207
|
-
), M = y(() =>
|
|
6208
|
-
return { __sfc: !0, props: t, emit: e, handleClick: a, slots:
|
|
6243
|
+
), M = y(() => De(t.name, 60));
|
|
6244
|
+
return { __sfc: !0, props: t, emit: e, handleClick: a, slots: n, data: s, staticStyle: o, staticClass: l, styleClass: r, key: c, attrs: g, emptyTempleTitle: S, docTempleTitle: M, BlockMedia: pt };
|
|
6209
6245
|
}
|
|
6210
6246
|
});
|
|
6211
|
-
var
|
|
6247
|
+
var Zi = function() {
|
|
6212
6248
|
var e = this, t = e._self._c, a = e._self._setupProxy;
|
|
6213
6249
|
return t("div", e._b({ key: a.key, staticClass: "item", class: [
|
|
6214
6250
|
a.staticClass,
|
|
@@ -6221,15 +6257,15 @@ var Ai = function() {
|
|
|
6221
6257
|
], style: a.staticStyle, on: { click: a.handleClick } }, "div", a.attrs, !1), [t("div", { staticClass: "item-paper" }, [e.thumbnail ? t("div", { staticStyle: { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }, style: {
|
|
6222
6258
|
backgroundImage: `url(${e.thumbnail})`
|
|
6223
6259
|
} }) : e.isPlaceholder || e.isAdd ? e._e() : t(a.BlockMedia, { staticClass: "item-media", attrs: { media: e.media, preview: "" } }), a.slots.badge ? t("div", { staticClass: "absolute bottom-2 right-2" }, [e._t("badge")], 2) : e._e(), e.isAdd ? t("div", { staticClass: "add-button" }, [t("CIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : e._e()], 1), t("div", { staticClass: "item-footer" }, [e.isAdd ? t("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: e._s(a.emptyTempleTitle) } }) : e.name ? [t("div", { staticClass: "item-text", domProps: { textContent: e._s(a.docTempleTitle) } }), e._t("default")] : e._e()], 2)]);
|
|
6224
|
-
},
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6260
|
+
}, Oi = [], Ui = /* @__PURE__ */ d(
|
|
6261
|
+
zi,
|
|
6262
|
+
Zi,
|
|
6263
|
+
Oi,
|
|
6228
6264
|
!1,
|
|
6229
6265
|
null,
|
|
6230
|
-
"
|
|
6266
|
+
"3f382eb1"
|
|
6231
6267
|
);
|
|
6232
|
-
const
|
|
6268
|
+
const Ri = Ui.exports, Gi = {
|
|
6233
6269
|
name: "HorizontalScroll",
|
|
6234
6270
|
components: {
|
|
6235
6271
|
Simplebar: _
|
|
@@ -6259,10 +6295,10 @@ const zi = Ei.exports, Zi = {
|
|
|
6259
6295
|
},
|
|
6260
6296
|
methods: {
|
|
6261
6297
|
go(i) {
|
|
6262
|
-
var
|
|
6298
|
+
var n, s;
|
|
6263
6299
|
if (!this.$refs.container)
|
|
6264
6300
|
return;
|
|
6265
|
-
const e = (i > 0 ? 1 : -1) * (this.$refs.container.offsetWidth / 2), t = (
|
|
6301
|
+
const e = (i > 0 ? 1 : -1) * (this.$refs.container.offsetWidth / 2), t = (s = (n = this.$refs) == null ? void 0 : n.list) == null ? void 0 : s.scrollElement;
|
|
6266
6302
|
if (!t)
|
|
6267
6303
|
return;
|
|
6268
6304
|
const { scrollLeft: a } = t;
|
|
@@ -6274,8 +6310,8 @@ const zi = Ei.exports, Zi = {
|
|
|
6274
6310
|
},
|
|
6275
6311
|
scrollHandler() {
|
|
6276
6312
|
clearTimeout(this.scrollTimer), this.scrollTimer = setTimeout(() => {
|
|
6277
|
-
var
|
|
6278
|
-
const i = (
|
|
6313
|
+
var n, s;
|
|
6314
|
+
const i = (s = (n = this.$refs) == null ? void 0 : n.list) == null ? void 0 : s.scrollElement;
|
|
6279
6315
|
if (!i)
|
|
6280
6316
|
return;
|
|
6281
6317
|
const { scrollWidth: e, scrollLeft: t, offsetWidth: a } = i;
|
|
@@ -6284,7 +6320,7 @@ const zi = Ei.exports, Zi = {
|
|
|
6284
6320
|
}
|
|
6285
6321
|
}
|
|
6286
6322
|
};
|
|
6287
|
-
var
|
|
6323
|
+
var Wi = function() {
|
|
6288
6324
|
var e = this, t = e._self._c;
|
|
6289
6325
|
return t("div", { ref: "container", staticClass: "horizontal-scroll" }, [t("div", { staticClass: "hl-navigation" }, [e.hasPrev ? t("div", { staticClass: "hl-btn-left max-sm:hidden", on: { click: function(a) {
|
|
6290
6326
|
return e.go(-1);
|
|
@@ -6297,32 +6333,32 @@ var Oi = function() {
|
|
|
6297
6333
|
return e.$emit("expand");
|
|
6298
6334
|
} } })];
|
|
6299
6335
|
})], 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)]);
|
|
6300
|
-
},
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6336
|
+
}, qi = [], Ni = /* @__PURE__ */ d(
|
|
6337
|
+
Gi,
|
|
6338
|
+
Wi,
|
|
6339
|
+
qi,
|
|
6304
6340
|
!1,
|
|
6305
6341
|
null,
|
|
6306
|
-
"
|
|
6342
|
+
"94f802b3"
|
|
6307
6343
|
);
|
|
6308
|
-
const
|
|
6309
|
-
function
|
|
6344
|
+
const ji = Ni.exports;
|
|
6345
|
+
function Ki(i, { availableProducts: e }) {
|
|
6310
6346
|
if (!i)
|
|
6311
6347
|
throw new Error("Missing parameter templateId");
|
|
6312
|
-
const t = e, a = Object.keys(t).find((
|
|
6348
|
+
const t = e, a = Object.keys(t).find((n) => {
|
|
6313
6349
|
var o;
|
|
6314
|
-
const
|
|
6315
|
-
t[
|
|
6350
|
+
const s = u(
|
|
6351
|
+
t[n],
|
|
6316
6352
|
"metadata.companyPurchase"
|
|
6317
6353
|
);
|
|
6318
|
-
return (
|
|
6354
|
+
return (s == null ? void 0 : s.type) === "template" && ((o = s == null ? void 0 : s.data) == null ? void 0 : o.id) === i;
|
|
6319
6355
|
});
|
|
6320
6356
|
return a ? t[a] : null;
|
|
6321
6357
|
}
|
|
6322
|
-
async function
|
|
6358
|
+
async function Yi(i) {
|
|
6323
6359
|
if (!i)
|
|
6324
6360
|
throw new Error("Missing argument stripeProduct");
|
|
6325
|
-
const e = i == null ? void 0 : i.prices[0], { data: t } = await
|
|
6361
|
+
const e = i == null ? void 0 : i.prices[0], { data: t } = await Ve.createCheckoutSession({
|
|
6326
6362
|
items: [
|
|
6327
6363
|
{
|
|
6328
6364
|
stripePriceStripeId: e.stripeId,
|
|
@@ -6334,25 +6370,25 @@ async function qi(i) {
|
|
|
6334
6370
|
}), { redirectUrl: a } = t;
|
|
6335
6371
|
window.open(a, "_blank");
|
|
6336
6372
|
}
|
|
6337
|
-
function
|
|
6338
|
-
var
|
|
6373
|
+
function se(i, { availableProducts: e }) {
|
|
6374
|
+
var n, s, o;
|
|
6339
6375
|
let t = null;
|
|
6340
|
-
const a =
|
|
6376
|
+
const a = Ki(i.templateId, {
|
|
6341
6377
|
availableProducts: e
|
|
6342
6378
|
});
|
|
6343
6379
|
return a && (t = {
|
|
6344
|
-
price:
|
|
6345
|
-
currency: (
|
|
6380
|
+
price: W((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, {
|
|
6381
|
+
currency: (s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].currency
|
|
6346
6382
|
}),
|
|
6347
6383
|
isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
|
|
6348
|
-
onBuy: async () =>
|
|
6384
|
+
onBuy: async () => Yi(a)
|
|
6349
6385
|
}), t;
|
|
6350
6386
|
}
|
|
6351
|
-
const
|
|
6387
|
+
const Qi = {
|
|
6352
6388
|
name: "GalleryTemplateModal",
|
|
6353
6389
|
components: {
|
|
6354
6390
|
simplebar: _,
|
|
6355
|
-
DocumentLayout:
|
|
6391
|
+
DocumentLayout: Ke,
|
|
6356
6392
|
IsPremium: $,
|
|
6357
6393
|
IsPremiumPreStep: L
|
|
6358
6394
|
},
|
|
@@ -6422,7 +6458,7 @@ const Ni = {
|
|
|
6422
6458
|
isSuperUser: "application/isSuperUser"
|
|
6423
6459
|
}),
|
|
6424
6460
|
previewDocument() {
|
|
6425
|
-
const { data: i, defaultData: e } = this.template, t = new
|
|
6461
|
+
const { data: i, defaultData: e } = this.template, t = new Q({
|
|
6426
6462
|
data: {
|
|
6427
6463
|
...e,
|
|
6428
6464
|
template: i,
|
|
@@ -6438,20 +6474,20 @@ const Ni = {
|
|
|
6438
6474
|
}
|
|
6439
6475
|
},
|
|
6440
6476
|
created() {
|
|
6441
|
-
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn =
|
|
6477
|
+
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = Be.on(
|
|
6442
6478
|
"event",
|
|
6443
6479
|
async ({ type: i, action: e, data: t }) => {
|
|
6444
6480
|
var a;
|
|
6445
6481
|
if (i === "companyPurchase" && e === "applied" && (t == null ? void 0 : t.type) === "template") {
|
|
6446
|
-
const
|
|
6447
|
-
if (
|
|
6482
|
+
const n = (a = t == null ? void 0 : t.data) == null ? void 0 : a.id;
|
|
6483
|
+
if (n !== this.template.id)
|
|
6448
6484
|
return;
|
|
6449
|
-
const
|
|
6450
|
-
templateId:
|
|
6485
|
+
const s = {
|
|
6486
|
+
templateId: n,
|
|
6451
6487
|
isVisibleApp: !0,
|
|
6452
6488
|
includePurchaseInfo: !0
|
|
6453
|
-
}, o = await this.fetchGallery(
|
|
6454
|
-
this.privateProduct =
|
|
6489
|
+
}, o = await this.fetchGallery(s);
|
|
6490
|
+
this.privateProduct = se(
|
|
6455
6491
|
o[0],
|
|
6456
6492
|
{ availableProducts: this.stripeProducts }
|
|
6457
6493
|
);
|
|
@@ -6467,7 +6503,7 @@ const Ni = {
|
|
|
6467
6503
|
const i = this.template.id;
|
|
6468
6504
|
i || (this.templateStat = null);
|
|
6469
6505
|
try {
|
|
6470
|
-
const { data: e } = await
|
|
6506
|
+
const { data: e } = await Me.get(i);
|
|
6471
6507
|
this.templateStat = e;
|
|
6472
6508
|
} catch {
|
|
6473
6509
|
this.templateStat = null;
|
|
@@ -6484,42 +6520,42 @@ const Ni = {
|
|
|
6484
6520
|
},
|
|
6485
6521
|
async copyToClipboard(i) {
|
|
6486
6522
|
const e = `${f.baseUrl}/template/${i}`;
|
|
6487
|
-
await
|
|
6523
|
+
await J(e) && z("info", this.$t("copyMessage"));
|
|
6488
6524
|
}
|
|
6489
6525
|
}
|
|
6490
6526
|
};
|
|
6491
|
-
var
|
|
6527
|
+
var Ji = function() {
|
|
6492
6528
|
var a;
|
|
6493
6529
|
var e = this, t = e._self._c;
|
|
6494
6530
|
return t("div", { staticClass: "template-modal font-inter bg-gray-200" }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", flex: "1 1 auto", "min-height": "0" } }, [t("simplebar", { staticClass: "h-full w-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: {
|
|
6495
6531
|
backgroundImage: `url(${e.meta.author.avatar})`
|
|
6496
6532
|
} }), 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: "mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm" }, [t("div", { staticClass: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, [t("CIcon", { staticClass: "text-white", attrs: { type: "check", size: "12" } })], 1), t("div", { staticClass: "text-xs font-medium text-gray-700", domProps: { textContent: e._s(
|
|
6497
6533
|
e.$t("_common:purchased", { thing: e.$t("_common:template") })
|
|
6498
|
-
) } })]) : t("CButton", { staticClass: "!justify-start !px-4 text-left", 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: "bg-primary-400/80 border-primary-600/60 absolute right-2 top-1/2 -translate-y-1/2 rounded-md border px-2 py-1.5 text-sm leading-none text-white", domProps: { textContent: e._s(e.privateProduct.price) } })])] : e._e(), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canUseTemplate:
|
|
6499
|
-
return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick:
|
|
6534
|
+
) } })]) : t("CButton", { staticClass: "!justify-start !px-4 text-left", 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: "bg-primary-400/80 border-primary-600/60 absolute right-2 top-1/2 -translate-y-1/2 rounded-md border px-2 py-1.5 text-sm leading-none text-white", domProps: { textContent: e._s(e.privateProduct.price) } })])] : e._e(), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canUseTemplate: n }) {
|
|
6535
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
6500
6536
|
return [!e.product || e.privateProduct.isPurchased ? t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { disabled: e.product ? !e.privateProduct.isPurchased : !1, type: "secondary", wide: "" }, on: { click: function(o) {
|
|
6501
|
-
e.isPublicForm ||
|
|
6537
|
+
e.isPublicForm || n ? e.useSelectedTemplate() : s({ callback: e.useSelectedTemplate });
|
|
6502
6538
|
} } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")]) : e._e()];
|
|
6503
6539
|
} }], null, !0) })];
|
|
6504
|
-
} }]) }), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate:
|
|
6505
|
-
return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick:
|
|
6540
|
+
} }]) }), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: n }) {
|
|
6541
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
6506
6542
|
var o;
|
|
6507
6543
|
return [(e.product ? (o = e.product) != null && o.isPurchased : e.showSave) ? t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { loading: e.isLoading, type: e.didSave ? "success" : "none", "icon-left": e.didSave ? "check" : void 0, wide: "" }, on: { click: function(l) {
|
|
6508
|
-
e.didSave || (e.isPublicForm ||
|
|
6544
|
+
e.didSave || (e.isPublicForm || n ? e.saveAsTemplate() : s({ callback: e.saveAsTemplate }));
|
|
6509
6545
|
} } }, [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()];
|
|
6510
6546
|
} }], null, !0) })];
|
|
6511
|
-
} }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "link", wide: "" }, on: { click: function(
|
|
6547
|
+
} }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "link", wide: "" }, on: { click: function(n) {
|
|
6512
6548
|
return e.copyToClipboard(e.template.id);
|
|
6513
6549
|
} } }, [e._v(" " + e._s(e.$t("_common:share", { thing: e.$t("_common:link") })) + " ")]) : e._e()], 2)])]);
|
|
6514
|
-
},
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6550
|
+
}, Xi = [], ea = /* @__PURE__ */ d(
|
|
6551
|
+
Qi,
|
|
6552
|
+
Ji,
|
|
6553
|
+
Xi,
|
|
6518
6554
|
!1,
|
|
6519
6555
|
null,
|
|
6520
|
-
"
|
|
6556
|
+
"bf9bb994"
|
|
6521
6557
|
);
|
|
6522
|
-
const
|
|
6558
|
+
const ta = ea.exports, ia = {
|
|
6523
6559
|
name: "GalleryLogic",
|
|
6524
6560
|
i18nOptions: {
|
|
6525
6561
|
namespaces: "GalleryLogic",
|
|
@@ -6644,16 +6680,16 @@ const Qi = Yi.exports, Ji = {
|
|
|
6644
6680
|
}
|
|
6645
6681
|
},
|
|
6646
6682
|
beforeCreate() {
|
|
6647
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
6683
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", tt);
|
|
6648
6684
|
},
|
|
6649
6685
|
async created() {
|
|
6650
|
-
var t, a,
|
|
6686
|
+
var t, a, n, s;
|
|
6651
6687
|
this.canPurchase && await this.loadPrices();
|
|
6652
6688
|
let i = this.galleryCategory;
|
|
6653
6689
|
!i && ((a = (t = this.$route) == null ? void 0 : t.query) != null && a.list) && ([i] = this.$route.query.list.split(",")), i && (this.activeCategory = this.allCategories.find(
|
|
6654
6690
|
({ key: o }) => o === i
|
|
6655
6691
|
)), await this.loadTemplateGallery();
|
|
6656
|
-
const e = (
|
|
6692
|
+
const e = (s = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : s.id;
|
|
6657
6693
|
if (e)
|
|
6658
6694
|
try {
|
|
6659
6695
|
const o = this.templateGalleryItems.find(
|
|
@@ -6679,7 +6715,7 @@ const Qi = Yi.exports, Ji = {
|
|
|
6679
6715
|
const e = await this.fetchGallery(i);
|
|
6680
6716
|
this.templateGalleryItems = (e || []).map((t) => {
|
|
6681
6717
|
if (this.canPurchase && t.isPurchasable) {
|
|
6682
|
-
const a =
|
|
6718
|
+
const a = se(t, {
|
|
6683
6719
|
availableProducts: this.stripeProducts
|
|
6684
6720
|
});
|
|
6685
6721
|
a && (t.product = a);
|
|
@@ -6696,14 +6732,14 @@ const Qi = Yi.exports, Ji = {
|
|
|
6696
6732
|
}
|
|
6697
6733
|
},
|
|
6698
6734
|
async getGalleryTemplate(i) {
|
|
6699
|
-
var
|
|
6735
|
+
var s;
|
|
6700
6736
|
const e = {
|
|
6701
6737
|
_id: i,
|
|
6702
6738
|
populate: "templateId",
|
|
6703
6739
|
isVisibleApp: !0,
|
|
6704
6740
|
includePurchaseInfo: !0
|
|
6705
|
-
}, t = await this.fetchGallery(e), a = (
|
|
6706
|
-
return a ? (
|
|
6741
|
+
}, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
|
|
6742
|
+
return a ? (Ie(a), new Fe(a)) : null;
|
|
6707
6743
|
},
|
|
6708
6744
|
onUseTemplate(i) {
|
|
6709
6745
|
if (!i)
|
|
@@ -6726,7 +6762,7 @@ const Qi = Yi.exports, Ji = {
|
|
|
6726
6762
|
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
6727
6763
|
};
|
|
6728
6764
|
this.$modal.show(
|
|
6729
|
-
|
|
6765
|
+
ta,
|
|
6730
6766
|
{
|
|
6731
6767
|
template: i,
|
|
6732
6768
|
fetchGallery: this.fetchGallery,
|
|
@@ -6781,16 +6817,16 @@ const Qi = Yi.exports, Ji = {
|
|
|
6781
6817
|
selectGalleryItem: this.selectGalleryItem
|
|
6782
6818
|
});
|
|
6783
6819
|
}
|
|
6784
|
-
},
|
|
6785
|
-
var
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6820
|
+
}, aa = null, na = null;
|
|
6821
|
+
var sa = /* @__PURE__ */ d(
|
|
6822
|
+
ia,
|
|
6823
|
+
aa,
|
|
6824
|
+
na,
|
|
6789
6825
|
!1,
|
|
6790
6826
|
null,
|
|
6791
6827
|
null
|
|
6792
6828
|
);
|
|
6793
|
-
const
|
|
6829
|
+
const oa = sa.exports, la = {
|
|
6794
6830
|
i18nOptions: {
|
|
6795
6831
|
namespaces: "TemplateSelector",
|
|
6796
6832
|
messages: {
|
|
@@ -6834,11 +6870,13 @@ const ia = ta.exports, aa = {
|
|
|
6834
6870
|
},
|
|
6835
6871
|
name: "TemplateSelector",
|
|
6836
6872
|
components: {
|
|
6837
|
-
HorizontalScroll:
|
|
6838
|
-
DocumentIcon:
|
|
6839
|
-
DocumentRecent:
|
|
6840
|
-
GalleryLogic:
|
|
6841
|
-
IsPremiumPreStep: L
|
|
6873
|
+
HorizontalScroll: ji,
|
|
6874
|
+
DocumentIcon: Ri,
|
|
6875
|
+
DocumentRecent: Ei,
|
|
6876
|
+
GalleryLogic: oa,
|
|
6877
|
+
IsPremiumPreStep: L,
|
|
6878
|
+
CDropdown: P,
|
|
6879
|
+
CDropdownItem: E
|
|
6842
6880
|
},
|
|
6843
6881
|
mixins: [w],
|
|
6844
6882
|
props: {
|
|
@@ -6958,7 +6996,7 @@ const ia = ta.exports, aa = {
|
|
|
6958
6996
|
},
|
|
6959
6997
|
async saveTemplate(i) {
|
|
6960
6998
|
try {
|
|
6961
|
-
const { data: e } = i, t =
|
|
6999
|
+
const { data: e } = i, t = He(e, [
|
|
6962
7000
|
"_id",
|
|
6963
7001
|
"id",
|
|
6964
7002
|
"companyId",
|
|
@@ -6972,7 +7010,7 @@ const ia = ta.exports, aa = {
|
|
|
6972
7010
|
},
|
|
6973
7011
|
async openTemplateFormModal({ document: i = null, template: e = null }) {
|
|
6974
7012
|
this.$modal.show(
|
|
6975
|
-
|
|
7013
|
+
ne,
|
|
6976
7014
|
{
|
|
6977
7015
|
document: i,
|
|
6978
7016
|
template: e,
|
|
@@ -6989,7 +7027,7 @@ const ia = ta.exports, aa = {
|
|
|
6989
7027
|
);
|
|
6990
7028
|
},
|
|
6991
7029
|
async fetchGallery(i = {}) {
|
|
6992
|
-
const { data: e } = await
|
|
7030
|
+
const { data: e } = await Ae.get(i);
|
|
6993
7031
|
return e;
|
|
6994
7032
|
},
|
|
6995
7033
|
canUseTemplate(i) {
|
|
@@ -6997,86 +7035,92 @@ const ia = ta.exports, aa = {
|
|
|
6997
7035
|
},
|
|
6998
7036
|
async copyToClipboard(i) {
|
|
6999
7037
|
const e = `${f.baseUrl}/template/${i}`;
|
|
7000
|
-
await
|
|
7038
|
+
await J(e) && z("info", this.$t("copyMessage"));
|
|
7001
7039
|
}
|
|
7002
7040
|
}
|
|
7003
7041
|
};
|
|
7004
|
-
var
|
|
7042
|
+
var ra = function() {
|
|
7005
7043
|
var e = this, t = e._self._c;
|
|
7006
7044
|
return t("div", { staticClass: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, [t("div", { staticClass: "font-inter form-start main mx-auto max-w-5xl", class: { small: e.mq === "sm" } }, [e._t("header"), t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title" }, [t("div", [e._v(e._s(e.$t("myTemplates")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("myTemplatesSubTitle")) + " ")])]), t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: a }) {
|
|
7007
|
-
return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(
|
|
7045
|
+
return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
|
|
7008
7046
|
e.isExpanded = !0;
|
|
7009
|
-
} } }, e._l(e.myTemplates, function(
|
|
7010
|
-
return t("DocumentIcon", { key:
|
|
7011
|
-
|
|
7012
|
-
} }
|
|
7047
|
+
} } }, e._l(e.myTemplates, function(n) {
|
|
7048
|
+
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: { triggerOpenTemplate: function(s) {
|
|
7049
|
+
n.placeholder || (e.canUseTemplate(n) ? e.select({ templateId: n.id }) : a());
|
|
7050
|
+
} }, scopedSlots: e._u([{ key: "badge", fn: function() {
|
|
7051
|
+
return [e.canUseTemplate(n) ? !n.doConsumeDocumentQuota && !n.placeholder ? t("div", { staticClass: "bg-primary-500 border-primary-600 inline-flex h-5 items-center rounded border px-1.5 text-[11px] font-semibold capitalize leading-none text-white shadow-sm" }, [e._v(" " + e._s(e.$t("_common:free")) + " ")]) : e._e() : t("div", { staticClass: "inline-flex h-5 items-center gap-1 rounded border border-gray-300 bg-gray-200 px-1 leading-none text-gray-500/90 shadow-sm" }, [t("CIcon", { attrs: { type: "lock", size: "12", "stroke-width": "2.5" } }), t("div", { staticClass: "text-[11px] font-semibold" }, [e._v("Pro")])], 1)];
|
|
7052
|
+
}, proxy: !0 }], null, !0) }, [n.onModify === "create" && !n.doConsumeDocumentQuota ? t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
|
|
7013
7053
|
content: e.$t("icon.freeTooltip"),
|
|
7014
7054
|
placement: "bottom"
|
|
7015
7055
|
}, expression: `{
|
|
7016
7056
|
content: $t('icon.freeTooltip'),
|
|
7017
7057
|
placement: 'bottom'
|
|
7018
|
-
}` }], staticStyle: { top: "-8px", right: "-4px" }, attrs: { icon: "info", type: "none", pattern: "tertiary", size: "small" }, nativeOn: { click: function(
|
|
7019
|
-
|
|
7020
|
-
} } }) : t("CDropdown", { staticStyle: { top: "-8px", right: "-4px" }, attrs: { "append-to-body": "" }, nativeOn: { click: function(
|
|
7021
|
-
|
|
7022
|
-
} }
|
|
7023
|
-
return e.
|
|
7024
|
-
}
|
|
7025
|
-
return e.
|
|
7026
|
-
} } }, [e._v(" " + e._s(e.$t("_common:
|
|
7027
|
-
return e.
|
|
7028
|
-
} } }, [e._v(" " + e._s(e.$t("_common:
|
|
7029
|
-
return e.
|
|
7058
|
+
}` }], staticStyle: { top: "-8px", right: "-4px" }, attrs: { icon: "info", type: "none", pattern: "tertiary", size: "small" }, nativeOn: { click: function(s) {
|
|
7059
|
+
s.stopPropagation();
|
|
7060
|
+
} } }) : t("CDropdown", { staticStyle: { top: "-8px", right: "-4px" }, attrs: { "append-to-body": "" }, nativeOn: { click: function(s) {
|
|
7061
|
+
s.stopPropagation();
|
|
7062
|
+
} }, scopedSlots: e._u([{ key: "trigger", fn: function() {
|
|
7063
|
+
return [t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("icon.tooltip"), expression: "$t('icon.tooltip')" }], attrs: { icon: "more-vertical", type: "none", pattern: "tertiary", size: "small" } })];
|
|
7064
|
+
}, proxy: !0 }], null, !0) }, [e.onEditTemplate ? t("CDropdownItem", { attrs: { "icon-left": "template-color" }, on: { click: function(s) {
|
|
7065
|
+
return e.onEditTemplate(n.id);
|
|
7066
|
+
} } }, [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) {
|
|
7067
|
+
return e.openTemplateFormModal({ template: n });
|
|
7068
|
+
} } }, [e._v(" " + e._s(e.$t("_common:change", { thing: e.$t("_common:name") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), t("CDropdownItem", { attrs: { "icon-props": { size: 16 }, "icon-left": "link" }, on: { click: function(s) {
|
|
7069
|
+
return e.copyToClipboard(n.id);
|
|
7070
|
+
} } }, [e._v(" " + e._s(e.$t("_common:share", { thing: e.$t("_common:link") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), t("CDropdownItem", { attrs: { "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" }, "icon-left": "trash" }, on: { click: function(s) {
|
|
7071
|
+
return e.removeTemplate({ template: n });
|
|
7030
7072
|
} } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 1)], 1);
|
|
7031
7073
|
}), 1)];
|
|
7032
7074
|
} }]) })], 1), e.showGallery ? [t("GalleryLogic", { attrs: { "fetch-gallery": e.fetchGallery, "use-template": e.select, "show-template-author": e.showGalleryTemplateAuthor, "modal-props": e.galleryModalProps, "gallery-category": e.galleryCategory }, scopedSlots: e._u([{ key: "default", fn: function({
|
|
7033
7075
|
galleryItems: a,
|
|
7034
|
-
categories:
|
|
7035
|
-
activeCategory:
|
|
7076
|
+
categories: n,
|
|
7077
|
+
activeCategory: s,
|
|
7036
7078
|
selectCategory: o,
|
|
7037
7079
|
selectGalleryItem: l
|
|
7038
7080
|
}) {
|
|
7039
7081
|
return [t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title w-full" }, [t("div", { staticClass: "flex items-center justify-between" }, [t("div", [e._v(e._s(e.$t("gallery")))]), t("CDropdown", { staticStyle: { "margin-left": "calc(0.5 * var(--rem))" }, nativeOn: { click: function(r) {
|
|
7040
7082
|
r.stopPropagation();
|
|
7041
|
-
} }
|
|
7042
|
-
return t("
|
|
7083
|
+
} }, scopedSlots: e._u([{ key: "trigger", fn: function() {
|
|
7084
|
+
return [t("CButton", { attrs: { size: "small", type: "none", pattern: "secondary", "icon-right": "chevron-down" } }, [e._v(" " + e._s(s ? s.label : "") + " ")])];
|
|
7085
|
+
}, proxy: !0 }], null, !0) }, e._l(n, function(r) {
|
|
7086
|
+
return t("CDropdownItem", { key: r.key, attrs: { "icon-right": s && s.key === r.key ? "check" : "" }, on: { click: function(c) {
|
|
7043
7087
|
return o(r);
|
|
7044
7088
|
} } }, [e._v(" " + e._s(r.label) + " ")]);
|
|
7045
|
-
})
|
|
7089
|
+
}), 1)], 1), t("div", { staticClass: "section-subtitle", domProps: { innerHTML: e._s(e.$t("gallerySubTitle")) } })]), t("HorizontalScroll", { staticClass: "template-list" }, e._l(a, function(r) {
|
|
7046
7090
|
return t("DocumentIcon", { key: r.id, staticClass: "template-item", attrs: { "is-placeholder": r.placeholder, media: { type: "image", resourceUrl: r.backgroundUrl }, name: r.name }, on: { triggerOpenTemplate: function(c) {
|
|
7047
7091
|
r.placeholder || l(r);
|
|
7048
|
-
} }
|
|
7092
|
+
} }, scopedSlots: e._u([{ key: "badge", fn: function() {
|
|
7093
|
+
return [r.product ? t("div", { staticClass: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg" }, [r.product.isPurchased ? t("CIcon", { attrs: { type: "check", size: "14", "stroke-width": "3" } }) : t("div", { domProps: { textContent: e._s(r.product.price) } })], 1) : e._e()];
|
|
7094
|
+
}, proxy: !0 }], null, !0) });
|
|
7049
7095
|
}), 1)], 1)];
|
|
7050
|
-
} }], null, !1,
|
|
7051
|
-
},
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7096
|
+
} }], null, !1, 3414906714) })] : 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)]);
|
|
7097
|
+
}, ca = [], da = /* @__PURE__ */ d(
|
|
7098
|
+
la,
|
|
7099
|
+
ra,
|
|
7100
|
+
ca,
|
|
7055
7101
|
!1,
|
|
7056
7102
|
null,
|
|
7057
|
-
"
|
|
7103
|
+
"046b633b"
|
|
7058
7104
|
);
|
|
7059
|
-
const
|
|
7060
|
-
var
|
|
7061
|
-
function
|
|
7062
|
-
for (var a = -1,
|
|
7063
|
-
var o = e[a], l =
|
|
7064
|
-
t(l, o) &&
|
|
7105
|
+
const pa = da.exports;
|
|
7106
|
+
var ua = Pe, ma = Ee, ha = ze;
|
|
7107
|
+
function fa(i, e, t) {
|
|
7108
|
+
for (var a = -1, n = e.length, s = {}; ++a < n; ) {
|
|
7109
|
+
var o = e[a], l = ua(i, o);
|
|
7110
|
+
t(l, o) && ma(s, ha(o, i), l);
|
|
7065
7111
|
}
|
|
7066
|
-
return
|
|
7112
|
+
return s;
|
|
7067
7113
|
}
|
|
7068
|
-
var
|
|
7069
|
-
function
|
|
7070
|
-
return
|
|
7071
|
-
return
|
|
7114
|
+
var ga = fa, Ca = ga, va = Ze;
|
|
7115
|
+
function ya(i, e) {
|
|
7116
|
+
return Ca(i, e, function(t, a) {
|
|
7117
|
+
return va(i, a);
|
|
7072
7118
|
});
|
|
7073
7119
|
}
|
|
7074
|
-
var
|
|
7075
|
-
return i == null ? {} :
|
|
7076
|
-
}),
|
|
7077
|
-
const
|
|
7078
|
-
E.use(nt);
|
|
7079
|
-
const ba = {
|
|
7120
|
+
var xa = ya, wa = xa, ba = nt, ka = ba(function(i, e) {
|
|
7121
|
+
return i == null ? {} : wa(i, e);
|
|
7122
|
+
}), _a = ka;
|
|
7123
|
+
const La = /* @__PURE__ */ Y(_a), $a = {
|
|
7080
7124
|
name: "DocForm",
|
|
7081
7125
|
i18nOptions: {
|
|
7082
7126
|
namespaces: "widgetDocForm",
|
|
@@ -7090,9 +7134,9 @@ const ba = {
|
|
|
7090
7134
|
}
|
|
7091
7135
|
},
|
|
7092
7136
|
components: {
|
|
7093
|
-
TemplateSelector:
|
|
7094
|
-
DocumentForm:
|
|
7095
|
-
PostSend:
|
|
7137
|
+
TemplateSelector: pa,
|
|
7138
|
+
DocumentForm: Ii,
|
|
7139
|
+
PostSend: gt
|
|
7096
7140
|
},
|
|
7097
7141
|
provide() {
|
|
7098
7142
|
return {
|
|
@@ -7155,7 +7199,7 @@ const ba = {
|
|
|
7155
7199
|
};
|
|
7156
7200
|
},
|
|
7157
7201
|
computed: {
|
|
7158
|
-
...
|
|
7202
|
+
...Oe({
|
|
7159
7203
|
company: "application/company",
|
|
7160
7204
|
feature: "application/feature",
|
|
7161
7205
|
can: "application/can",
|
|
@@ -7164,8 +7208,8 @@ const ba = {
|
|
|
7164
7208
|
docById: "documents2/byId"
|
|
7165
7209
|
}),
|
|
7166
7210
|
canDoActions() {
|
|
7167
|
-
var i, e, t, a,
|
|
7168
|
-
return !!((
|
|
7211
|
+
var i, e, t, a, n, s;
|
|
7212
|
+
return !!((s = (n = (a = (t = (e = (i = this.document) == null ? void 0 : i._template) == null ? void 0 : e._data) == null ? void 0 : t.views) == null ? void 0 : a.read) == null ? void 0 : n.nodes) != null && s.length);
|
|
7169
7213
|
}
|
|
7170
7214
|
},
|
|
7171
7215
|
watch: {
|
|
@@ -7188,7 +7232,7 @@ const ba = {
|
|
|
7188
7232
|
(!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
|
|
7189
7233
|
},
|
|
7190
7234
|
methods: {
|
|
7191
|
-
...
|
|
7235
|
+
...Ue({
|
|
7192
7236
|
removeFormKeyValue: h.REMOVE_FORM_KEY_VALUE,
|
|
7193
7237
|
loadDocumentForm: h.LOAD_DOCUMENT2_FORM,
|
|
7194
7238
|
duplicateDocumentForm: h.LOAD_DUPLICATE_DOCUMENT2_FORM,
|
|
@@ -7199,7 +7243,7 @@ const ba = {
|
|
|
7199
7243
|
async initDoc() {
|
|
7200
7244
|
if (!this.rawDoc)
|
|
7201
7245
|
throw new Error("Missing initiated form document");
|
|
7202
|
-
this.document = new
|
|
7246
|
+
this.document = new Q({
|
|
7203
7247
|
data: this.rawDoc,
|
|
7204
7248
|
can: this.can,
|
|
7205
7249
|
getters: this.$store.getters,
|
|
@@ -7207,8 +7251,8 @@ const ba = {
|
|
|
7207
7251
|
});
|
|
7208
7252
|
},
|
|
7209
7253
|
async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
|
|
7210
|
-
var
|
|
7211
|
-
const a =
|
|
7254
|
+
var n;
|
|
7255
|
+
const a = La({ ...this.rawDoc }, [
|
|
7212
7256
|
"__tempId",
|
|
7213
7257
|
"externalReferences",
|
|
7214
7258
|
"subscriberCompanyUserIds",
|
|
@@ -7220,9 +7264,9 @@ const ba = {
|
|
|
7220
7264
|
_formData: a
|
|
7221
7265
|
}) : await this.loadDocumentForm({
|
|
7222
7266
|
templateId: i,
|
|
7223
|
-
formData: t ?
|
|
7267
|
+
formData: t ? Re(t, a) : null,
|
|
7224
7268
|
_formData: a
|
|
7225
|
-
}), (
|
|
7269
|
+
}), (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";
|
|
7226
7270
|
},
|
|
7227
7271
|
setDocValue({ key: i, value: e }) {
|
|
7228
7272
|
return this.setFormValue({ key: i, value: e });
|
|
@@ -7240,7 +7284,7 @@ const ba = {
|
|
|
7240
7284
|
}), typeof this.closeFunc == "function" && await this.closeFunc(), this.isSavingTemplate = !1;
|
|
7241
7285
|
},
|
|
7242
7286
|
async onSaveDocument({ doSend: i = !1 } = {}) {
|
|
7243
|
-
var
|
|
7287
|
+
var s;
|
|
7244
7288
|
let e;
|
|
7245
7289
|
if (typeof this.beforeSave == "function" && (e = await this.beforeSave(this.document)), i && typeof this.beforeSend == "function" && (e = await this.beforeSend(this.document)), e)
|
|
7246
7290
|
return;
|
|
@@ -7248,8 +7292,8 @@ const ba = {
|
|
|
7248
7292
|
if (!t)
|
|
7249
7293
|
return;
|
|
7250
7294
|
const a = this.docById(t);
|
|
7251
|
-
let
|
|
7252
|
-
i && (
|
|
7295
|
+
let n;
|
|
7296
|
+
i && (n = !!(a != null && a.senderClient) || this.isManualDelivery(a)), n ? (this.document = a, this.view = "postSend") : (s = this.closeFunc) == null || s.call(this);
|
|
7253
7297
|
},
|
|
7254
7298
|
goBack() {
|
|
7255
7299
|
this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
|
|
@@ -7260,18 +7304,20 @@ const ba = {
|
|
|
7260
7304
|
}
|
|
7261
7305
|
}
|
|
7262
7306
|
};
|
|
7263
|
-
var
|
|
7307
|
+
var Sa = function() {
|
|
7264
7308
|
var e = this, t = e._self._c;
|
|
7265
|
-
return t("div", { staticClass: "flex h-full w-full flex-col" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex h-full w-full flex-col" }, [t("div", { staticClass: "relative flex h-16 items-center justify-center border-b border-gray-200" }, [e.closeFunc ? t("CButton", { staticClass: "absolute left-4 top-1/2 -translate-y-1/2", attrs: { icon: "x", circle: "" }, on: { click: e.closeFunc } }) : e._e(), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "body-scroll min-h-0", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "gallery-category": e.galleryCategory, "on-save-template": e.onSaveTemplate, "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-template": e.onSaveTemplate, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.closeFunc, "go-back": !e.document.id && e.showBackButton ? e.goBack : null, "can-show-banner": !1 }
|
|
7266
|
-
},
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7309
|
+
return t("div", { staticClass: "flex h-full w-full flex-col" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex h-full w-full flex-col" }, [t("div", { staticClass: "relative flex h-16 items-center justify-center border-b border-gray-200" }, [e.closeFunc ? t("CButton", { staticClass: "absolute left-4 top-1/2 -translate-y-1/2", attrs: { icon: "x", circle: "" }, on: { click: e.closeFunc } }) : e._e(), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "body-scroll min-h-0", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "gallery-category": e.galleryCategory, "on-save-template": e.onSaveTemplate, "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-template": e.onSaveTemplate, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.closeFunc, "go-back": !e.document.id && e.showBackButton ? e.goBack : null, "can-show-banner": !1 }, scopedSlots: e._u([{ key: "nav-right-action", fn: function() {
|
|
7310
|
+
return [e.isEditingTemplate ? t("CButton", { staticClass: "d-nav-button position right save-template-button", staticStyle: { "min-width": "6em", "font-size": "16px" }, attrs: { loading: e.isSavingTemplate, disabled: !e.canDoActions, "icon-left": "template", type: "secondary", thinner: "", rounded: "" }, on: { click: e.onSaveTemplateClick } }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:template") })) + " ")]) : e._e()];
|
|
7311
|
+
}, proxy: !0 }]) }) : e.view === "postSend" ? t("PostSend", { attrs: { document: e.document, "on-send-func": e.closeFunc, "on-close-func": e.closeFunc } }) : e._e()], 1);
|
|
7312
|
+
}, Ta = [], Da = /* @__PURE__ */ d(
|
|
7313
|
+
$a,
|
|
7314
|
+
Sa,
|
|
7315
|
+
Ta,
|
|
7270
7316
|
!1,
|
|
7271
7317
|
null,
|
|
7272
|
-
"
|
|
7318
|
+
"a10d9c03"
|
|
7273
7319
|
);
|
|
7274
|
-
const
|
|
7320
|
+
const tn = Da.exports;
|
|
7275
7321
|
export {
|
|
7276
|
-
|
|
7322
|
+
tn as default
|
|
7277
7323
|
};
|