@cling-se/widget 0.15.1 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddClientCallout-XGs5vmVP.js → AddClientCallout-8s5a1_CZ.js} +3 -3
- package/dist/{AnswerModal-Djvpd4kg.js → AnswerModal-Cnp43tGo.js} +3 -3
- package/dist/{AttachmentItem-C_5E8Fa4.js → AttachmentItem-BP85gcjP.js} +6 -4
- package/dist/{BaseDatePicker-BpGzPBp_.js → BaseDatePicker-C27CsTzy.js} +486 -482
- package/dist/{BaseUpload-Dm5C-j0L.js → BaseUpload-DnhS3hGx.js} +2 -2
- package/dist/{BlockMedia-DbiVw803.js → BlockMedia-D4nhek2s.js} +1 -1
- package/dist/{CCallout-DL9smLC_.js → CCallout-CQjRcxpC.js} +1 -1
- package/dist/{CCurrencyDropdown--RshYh6V.js → CCurrencyDropdown-BT01qBGg.js} +24 -20
- package/dist/{CDropdownItem-Bzbrlurh.js → CDropdownItem-BSPNul90.js} +1 -1
- package/dist/{CFormField-DABM0TLB.js → CFormField-Cz_jNazS.js} +1 -1
- package/dist/{CPhoneFormat-BhzciB_P.js → CPhoneFormat-C017AoM0.js} +1 -1
- package/dist/{CPriceInput-DVZ4OVfI.js → CPriceInput-jktMjvwx.js} +20 -16
- package/dist/ClientAutocomplete-B3z6RPXr.js +82 -0
- package/dist/{ClientModal-BSUhx0YR.js → ClientModal-DLtFhJya.js} +31 -25
- package/dist/{ColorPicker-BpTmTnpR.js → ColorPicker-MQmVGbvm.js} +1 -1
- package/dist/{CompanyModal-C7LZybS4.js → CompanyModal-Qx5xMku0.js} +4 -4
- package/dist/{ContentWrapper-DlRJSB1H.js → ContentWrapper-B9NQqp2q.js} +63 -55
- package/dist/{CoverBlockSettings-Cxxex_lN.js → CoverBlockSettings-Bcz_W5I3.js} +5 -5
- package/dist/{DocAnswer-B-MxL_1t.js → DocAnswer-BlxFv_Gc.js} +2 -2
- package/dist/{DocDetails-DjBrxQ_R.js → DocDetails-dGcYGJpp.js} +42 -38
- package/dist/{DocForm-Beoj5wra.js → DocForm-C6o_XBcW.js} +915 -879
- package/dist/{DocFormSend-D_v5NC6u.js → DocFormSend-_prtxNIf.js} +11 -7
- package/dist/{DocLinks-CojBcyHP.js → DocLinks-Dp495SCS.js} +2 -2
- package/dist/{DocModalBase-BgduKHWe.js → DocModalBase-B0wYq3ft.js} +1 -1
- package/dist/{DocPrint-BCscbY6G.js → DocPrint-CURxofeU.js} +1 -1
- package/dist/{DocReceipt-Dxn5vcAc.js → DocReceipt-DgGcBRVH.js} +5 -3
- package/dist/{DocSendReminder-YpVUkgYH.js → DocSendReminder-CPty4svi.js} +1 -1
- package/dist/{DocTextEditor-In_CaKPA.js → DocTextEditor-BYsXFRLg.js} +67 -63
- package/dist/{DocTimeline-DU9nUQUH.js → DocTimeline-CHg1QykR.js} +7 -5
- package/dist/{DocumentClient-D5Eo9CcZ.js → DocumentClient-CZ6N73pQ.js} +5 -5
- package/dist/{DocumentLayout-BQ-wP5NB.js → DocumentLayout-CiszuoQc.js} +277 -271
- package/dist/{DocumentLogotype-CDG2k8N2.js → DocumentLogotype-BgFCWcwC.js} +17 -15
- package/dist/{DocumentVoided-B-bk6BHd.js → DocumentVoided-DT2hhHk2.js} +1 -1
- package/dist/{EmbedInput-8xfYdX6Q.js → EmbedInput-aLmvzK1I.js} +2 -2
- package/dist/{EmbedSettings-CzNKHRWA.js → EmbedSettings-BZipciy9.js} +2 -2
- package/dist/ErrorCallout-CNxSDsr_.js +27 -0
- package/dist/{FilePreviewModal-Dq8oaKBy.js → FilePreviewModal-DxdksQiy.js} +2 -2
- package/dist/{Flag-Fs-s9E60.js → Flag-3OyFDPsP.js} +1 -1
- package/dist/{HeaderSettings-DdmyTypr.js → HeaderSettings-DeoSRi6O.js} +18 -14
- package/dist/{ImageSelectModal-BXyTJKrO.js → ImageSelectModal-DvQz2VPi.js} +13 -11
- package/dist/{ImageUploadWrapper-B8D5l07p.js → ImageUploadWrapper-CNQRdHF9.js} +2 -2
- package/dist/{Index-BnCsHbZ1.js → Index-3bD76d9q.js} +6 -6
- package/dist/{Index-SkCtzHwt.js → Index-B0n1UOOA.js} +4 -4
- package/dist/{Index-BU8ft1y6.js → Index-B3Q09phm.js} +4 -4
- package/dist/{Index-V2Givdp2.js → Index-B9_POjpY.js} +5 -5
- package/dist/{Index-CgRP1XiQ.js → Index-BDCgilFk.js} +2 -2
- package/dist/{Index-Dl-EHPWj.js → Index-BEpKb8IR.js} +3 -3
- package/dist/{Index-YDDq9NSQ.js → Index-BIv8flFB.js} +8 -8
- package/dist/{Index-BcL9ebMW.js → Index-BNJ2KHKc.js} +2 -2
- package/dist/{Index-0aodZg_n.js → Index-BeMeWDIf.js} +5 -5
- package/dist/{Index-hz-7LKR4.js → Index-BglKAnNq.js} +21 -17
- package/dist/{Index-9uS4_N--.js → Index-BiVwDgqW.js} +2 -2
- package/dist/{Index-DmUOBV3i.js → Index-BjdxeF4C.js} +2 -2
- package/dist/{Index-BowtUux0.js → Index-C-CE21WK.js} +5 -5
- package/dist/{Index-B8_vIbXh.js → Index-CDKq7Fx6.js} +4 -4
- package/dist/{Index-CkqDhbLd.js → Index-CJeSVpRh.js} +2 -2
- package/dist/{Index-C8SV-RPw.js → Index-CPjAXBMU.js} +5 -5
- package/dist/{Index-BiApZ1Ic.js → Index-CTk6Nh-I.js} +7 -7
- package/dist/{Index-CqB099xV.js → Index-CTqdaykO.js} +3 -3
- package/dist/{Index-DPo796kj.js → Index-CWj2vDHc.js} +17 -15
- package/dist/{Index-NagcpUmI.js → Index-CXibuEkU.js} +1 -1
- package/dist/{Index-BMY2m8rD.js → Index-CePHdKi2.js} +4 -4
- package/dist/{Index-Db_zxCDU.js → Index-Cfc0Q0AG.js} +5 -5
- package/dist/Index-Ch5j2tqD.js +41 -0
- package/dist/{Index-DLSht_p3.js → Index-CjfCyQlB.js} +4 -4
- package/dist/{Index-BDA5wus0.js → Index-Cr6DlYGN.js} +2 -2
- package/dist/{Index-wpr5rBje.js → Index-CvRNeJ4U.js} +7 -7
- package/dist/{Index-B8XLiKic.js → Index-D-l3i9vY.js} +3 -3
- package/dist/{Index-C8Gsbm1Z.js → Index-D1NwTUs-.js} +5 -5
- package/dist/{Index-EGUIgf2A.js → Index-FC1UsElU.js} +4 -4
- package/dist/{Index-C2ZwmSbs.js → Index-PUFeH_1z.js} +4 -4
- package/dist/{Index-DcGgVbKe.js → Index-S3LqU0A0.js} +9 -7
- package/dist/{Index-C-OSub91.js → Index-jIIHHGh3.js} +376 -350
- package/dist/{Index-BYsgDllD.js → Index-q04Dwxrr.js} +17 -15
- package/dist/{Index-B68-YXDK.js → Index-w5DWfGOc.js} +4 -4
- package/dist/{InputToggleRow-J8fqDcd7.js → InputToggleRow-CvHvRdsn.js} +1 -1
- package/dist/{ManualPopover-BkAZ-cLE.js → ManualPopover-DxE-6-Sp.js} +13 -11
- package/dist/{MediaWrapper-BUQroqgd.js → MediaWrapper-DNi80fbw.js} +3 -3
- package/dist/{NotBindingText-DEjIIRIy.js → NotBindingText-D2rYFVxr.js} +2 -2
- package/dist/{PackageGroup-BXsk0x4O.js → PackageGroup-6ar8HjPo.js} +8 -8
- package/dist/{PdfTerms-vLidfDfk.js → PdfTerms-B-lbU_6H.js} +2 -2
- package/dist/{PdfViewer-Cyl_FcY1.js → PdfViewer-B5qbLLtd.js} +21 -21
- package/dist/PlainHtml-CIMtcn2F.js +27 -0
- package/dist/{PriceHeader-BV254rc3.js → PriceHeader-BSpj_-5M.js} +6 -6
- package/dist/{SearchApi-HLHEy8AM.js → SearchApi-Cwgf52EV.js} +2 -2
- package/dist/{Setup-DuCP6m5-.js → Setup-CRmiH9lD.js} +1 -1
- package/dist/{SmartList-C0IKb8qw.js → SmartList-D6AvxfSL.js} +1 -1
- package/dist/{TermsSettings-bHhM9dtD.js → TermsSettings-DEO1O460.js} +7 -5
- package/dist/{ThemeColorRow-MgU9X4Tj.js → ThemeColorRow-Cy1NKEIG.js} +14 -12
- package/dist/{ToggleBinding-gjKO_LN5.js → ToggleBinding-BvIUt1Jx.js} +8 -6
- package/dist/{UploadModal-QuXCJkzY.js → UploadModal-C1j-GeMD.js} +4 -4
- package/dist/{VideoPlayerInput-XebqdCEO.js → VideoPlayerInput-BmbrquN6.js} +3 -3
- package/dist/{VideoPlayerSettings-DMxguTAv.js → VideoPlayerSettings-B7HpBoWX.js} +2 -2
- package/dist/VideoSelectModal-CeaG2tME.js +104 -0
- package/dist/{answerDocumentMixin-BaVqM_ri.js → answerDocumentMixin-AcDG8Byi.js} +3 -3
- package/dist/{debounce-DUUqRe1d.js → debounce-HJoaSvIY.js} +1 -1
- package/dist/{focusDrawerMixin-BFQK8OUc.js → focusDrawerMixin-CBYjpEGL.js} +1 -1
- package/dist/{formComponentsInstall-qLhjQ7Rl.js → formComponentsInstall-DMoWrprH.js} +229 -223
- package/dist/{formDrawerState-BT31echi.js → formDrawerState-DYSBcjo4.js} +1 -1
- package/dist/{formValidationMixin-DWRJGUXb.js → formValidationMixin-Dqlhg0R2.js} +1 -1
- package/dist/{index-CLbtIs9u.js → index-CFe1BJZJ.js} +1 -1
- package/dist/{index-Dpx08x9s.js → index-CFwLDxbi.js} +5 -5
- package/dist/{index-BYMG8jiP.js → index-CFx0cpeM.js} +1 -1
- package/dist/{index-CO1KeOmj.js → index-CKZmpLr6.js} +69 -45
- package/dist/{index-Dsxyi-7P.js → index-CLOsPxCh.js} +14 -12
- package/dist/{index-DSOWfTTb.js → index-zzCfHTf8.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +142 -142
- package/dist/{main-CRQiO-g7.js → main-BIwKzAN8.js} +7329 -7275
- package/dist/{mapFormMixin-C9fs0AV5.js → mapFormMixin-e2PJ431T.js} +1 -1
- package/dist/{omit-tP4ZEy3Q.js → omit-CpamclWf.js} +3 -3
- package/dist/{publicSenderState-CApNsACD.js → publicSenderState-D-_7UwjT.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{throttle-B4S8Wjwz.js → throttle-B2yMLA5N.js} +2 -2
- package/dist/{tinycolor-PkULT0yA.js → tinycolor-vIxz4Xgi.js} +1 -1
- package/dist/{tippy.esm-C5HrjSHu.js → tippy.esm-DiOYviyf.js} +57 -53
- package/dist/{utils-j0eN0bhD.js → utils-CFXqaEy7.js} +1 -1
- package/dist/{vuedraggable.umd-BPB1Hmn2.js → vuedraggable.umd-DDT8qZBI.js} +1 -1
- package/package.json +1 -1
- package/dist/ClientAutocomplete-C9yyFzJ9.js +0 -78
- package/dist/ErrorCallout-Bh8OsLfY.js +0 -28
- package/dist/Index-CVSBD1f6.js +0 -31
- package/dist/PlainHtml-SVyW9vV2.js +0 -20
- package/dist/VideoSelectModal-B5AlGSUz.js +0 -100
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import se from "./AnswerModal-
|
|
2
|
-
import { o as
|
|
3
|
-
import { w
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
import { s as
|
|
7
|
-
import { l as
|
|
8
|
-
import { F as
|
|
9
|
-
import { m as
|
|
10
|
-
import { d as
|
|
11
|
-
import { d as
|
|
12
|
-
import { C as
|
|
13
|
-
import { C as
|
|
14
|
-
import { S as
|
|
15
|
-
import { o as
|
|
16
|
-
import { v as
|
|
17
|
-
import { t as
|
|
18
|
-
import { s as v } from "./formDrawerState-
|
|
19
|
-
import { s as
|
|
20
|
-
import { S as
|
|
21
|
-
import { f as
|
|
22
|
-
import { B as
|
|
23
|
-
const
|
|
1
|
+
import se from "./AnswerModal-Cnp43tGo.js";
|
|
2
|
+
import { o as oe } from "./index-zzCfHTf8.js";
|
|
3
|
+
import { w } from "./CDropdownItem-BSPNul90.js";
|
|
4
|
+
import { aY as H, g as h, n as d, c as f, b as u, d as le, aZ as re, S as ce, w as R, j as T, aE as de, aR as x, aa as p, P, h as B, ai as m, a_ as pe, a$ as ue, b0 as me, b1 as he, b2 as fe, b3 as ge, V as E, aT as G, aU as W, I as Z, b4 as I, aV as Ce, b5 as ve, K as ye, b6 as xe, f as we, k as q, b7 as be, b8 as ke, F as _e, b9 as Le, X as $e, T as y, G as Se, ba as Te, C as N, bb as De, bc as Ve, O as j, bd as Be, be as Me, aW as Ie, bf as Fe, bg as He, bh as Ae, a7 as Pe, bi as Ee, m as ze, a as Ze, bj as Oe } from "./main-BIwKzAN8.js";
|
|
5
|
+
import { a as b, m as C } from "./vuex.esm-DKGl8mcw.js";
|
|
6
|
+
import { s as _ } from "./Flag-3OyFDPsP.js";
|
|
7
|
+
import { l as Ue, g as Re, W as Ge, b as We, a as qe, D as Ne } from "./DocumentLayout-CiszuoQc.js";
|
|
8
|
+
import { F as K, d as je } from "./tippy.esm-DiOYviyf.js";
|
|
9
|
+
import { m as D } from "./mapFormMixin-e2PJ431T.js";
|
|
10
|
+
import { d as z, t as Ke } from "./debounce-HJoaSvIY.js";
|
|
11
|
+
import { d as Ye } from "./vuedraggable.umd-DDT8qZBI.js";
|
|
12
|
+
import { C as Qe, I as L, a as $, s as Je } from "./index-CKZmpLr6.js";
|
|
13
|
+
import { C as Y } from "./CFormField-Cz_jNazS.js";
|
|
14
|
+
import { S as Xe } from "./SmartList-D6AvxfSL.js";
|
|
15
|
+
import { o as et, _ as tt } from "./omit-CpamclWf.js";
|
|
16
|
+
import { v as A } from "./index-CFx0cpeM.js";
|
|
17
|
+
import { t as it } from "./tinycolor-vIxz4Xgi.js";
|
|
18
|
+
import { s as v } from "./formDrawerState-DYSBcjo4.js";
|
|
19
|
+
import { s as at } from "./dom-CJxkno7i.js";
|
|
20
|
+
import { S as nt, i as st } from "./formComponentsInstall-DMoWrprH.js";
|
|
21
|
+
import { f as ot } from "./formValidationMixin-Dqlhg0R2.js";
|
|
22
|
+
import { B as lt } from "./BlockMedia-D4nhek2s.js";
|
|
23
|
+
const rt = {
|
|
24
24
|
name: "DocumentPostSendStep",
|
|
25
|
-
mixins: [
|
|
25
|
+
mixins: [w],
|
|
26
26
|
i18nOptions: {
|
|
27
27
|
namespaces: "PostDocumentSend",
|
|
28
28
|
messages: {
|
|
@@ -57,7 +57,7 @@ const st = {
|
|
|
57
57
|
return this.mq === "sm" ? "100%" : "auto";
|
|
58
58
|
},
|
|
59
59
|
usesManualDelivery() {
|
|
60
|
-
const i =
|
|
60
|
+
const i = H(this.document);
|
|
61
61
|
return !i.sms && !i.email;
|
|
62
62
|
}
|
|
63
63
|
},
|
|
@@ -66,18 +66,18 @@ const st = {
|
|
|
66
66
|
(i = this.document) != null && i.senderClient ? await this.senderAnswer() : await this.onSend();
|
|
67
67
|
},
|
|
68
68
|
methods: {
|
|
69
|
-
...
|
|
70
|
-
updateDocument:
|
|
71
|
-
answerDocument:
|
|
72
|
-
sendDocument:
|
|
69
|
+
...b({
|
|
70
|
+
updateDocument: h.DO_UPDATE_DOCUMENT2,
|
|
71
|
+
answerDocument: h.ANSWER_OWN_DOCUMENT2,
|
|
72
|
+
sendDocument: h.DO_SEND_DOCUMENT2
|
|
73
73
|
}),
|
|
74
74
|
async handleDocumentLinks() {
|
|
75
|
-
const { id: i } = this.document, e =
|
|
75
|
+
const { id: i } = this.document, e = H(this.document), t = !e.sms && !e.email;
|
|
76
76
|
t && (await this.updateDocument({
|
|
77
77
|
id: i,
|
|
78
78
|
body: { status: "sent" },
|
|
79
79
|
showMessage: !1
|
|
80
|
-
}),
|
|
80
|
+
}), oe({ id: i })), t || setTimeout(() => this.close(), 2e3);
|
|
81
81
|
},
|
|
82
82
|
async onSend() {
|
|
83
83
|
typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
|
|
@@ -105,12 +105,12 @@ const st = {
|
|
|
105
105
|
// actions intended mirror public requests made in accept/bankId modals
|
|
106
106
|
// defined here in order to keep it DRY and avoiding account module actions defined in answer modals
|
|
107
107
|
senderActions: {
|
|
108
|
-
answer: (async function({ body:
|
|
108
|
+
answer: (async function({ body: s }) {
|
|
109
109
|
var o;
|
|
110
110
|
return this.answerDocument({
|
|
111
111
|
id: i,
|
|
112
112
|
publicId: e.publicDocumentId,
|
|
113
|
-
body:
|
|
113
|
+
body: s,
|
|
114
114
|
checksum: (o = this.document._doc) == null ? void 0 : o.checksum
|
|
115
115
|
});
|
|
116
116
|
}).bind(this),
|
|
@@ -129,8 +129,8 @@ const st = {
|
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
cancel: () => {
|
|
132
|
-
var
|
|
133
|
-
return (
|
|
132
|
+
var n;
|
|
133
|
+
return (n = this.onCancelFunc) == null ? void 0 : n.call(this);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
), !0);
|
|
@@ -140,18 +140,18 @@ const st = {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
var
|
|
143
|
+
var ct = function() {
|
|
144
144
|
var e = this, t = e._self._c;
|
|
145
145
|
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
|
-
|
|
146
|
+
}, dt = [], pt = /* @__PURE__ */ d(
|
|
147
|
+
rt,
|
|
148
|
+
ct,
|
|
149
|
+
dt,
|
|
150
150
|
!1,
|
|
151
151
|
null,
|
|
152
152
|
"736a58ea"
|
|
153
153
|
);
|
|
154
|
-
const
|
|
154
|
+
const ut = pt.exports, mt = {
|
|
155
155
|
name: "Drawer",
|
|
156
156
|
props: {
|
|
157
157
|
value: {
|
|
@@ -194,7 +194,7 @@ const rt = lt.exports, ct = {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
-
var
|
|
197
|
+
var ht = function() {
|
|
198
198
|
var e = this, t = e._self._c;
|
|
199
199
|
return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
|
|
200
200
|
zIndex: e.zIndex
|
|
@@ -210,19 +210,19 @@ var dt = function() {
|
|
|
210
210
|
boxShadow: e.boxShadow,
|
|
211
211
|
...e.contentStyle
|
|
212
212
|
} }, [e._t("default")], 2)]) : e._e()])], 1);
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
}, ft = [], gt = /* @__PURE__ */ d(
|
|
214
|
+
mt,
|
|
215
|
+
ht,
|
|
216
|
+
ft,
|
|
217
217
|
!1,
|
|
218
218
|
null,
|
|
219
219
|
"b9ff8f27"
|
|
220
220
|
);
|
|
221
|
-
const
|
|
221
|
+
const Q = gt.exports, Ct = {
|
|
222
222
|
name: "DocumentDrawer",
|
|
223
223
|
components: {
|
|
224
|
-
simplebar:
|
|
225
|
-
Drawer:
|
|
224
|
+
simplebar: _,
|
|
225
|
+
Drawer: Q
|
|
226
226
|
},
|
|
227
227
|
props: {
|
|
228
228
|
position: {
|
|
@@ -244,7 +244,7 @@ const K = ut.exports, mt = {
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var
|
|
247
|
+
var vt = function() {
|
|
248
248
|
var e = this, t = e._self._c;
|
|
249
249
|
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
250
|
"is-sticky": !e.fixed
|
|
@@ -256,29 +256,29 @@ var ht = function() {
|
|
|
256
256
|
padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
|
|
257
257
|
...e.fixedStyle
|
|
258
258
|
} }, [e._t("default")], 2)])])]) : e._e()], 1);
|
|
259
|
-
},
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
259
|
+
}, yt = [], xt = /* @__PURE__ */ d(
|
|
260
|
+
Ct,
|
|
261
|
+
vt,
|
|
262
|
+
yt,
|
|
263
263
|
!1,
|
|
264
264
|
null,
|
|
265
265
|
"4daaea05"
|
|
266
266
|
);
|
|
267
|
-
const
|
|
267
|
+
const wt = xt.exports, bt = {
|
|
268
268
|
name: "DocumentFormNav"
|
|
269
269
|
};
|
|
270
|
-
var
|
|
270
|
+
var kt = function() {
|
|
271
271
|
var e = this, t = e._self._c;
|
|
272
272
|
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
|
-
|
|
273
|
+
}, _t = [], Lt = /* @__PURE__ */ d(
|
|
274
|
+
bt,
|
|
275
|
+
kt,
|
|
276
|
+
_t,
|
|
277
277
|
!1,
|
|
278
278
|
null,
|
|
279
279
|
null
|
|
280
280
|
);
|
|
281
|
-
const
|
|
281
|
+
const $t = Lt.exports, St = {
|
|
282
282
|
name: "DocumentFormViewRadio",
|
|
283
283
|
props: {
|
|
284
284
|
value: {
|
|
@@ -291,7 +291,7 @@ const bt = wt.exports, kt = {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
|
-
var
|
|
294
|
+
var Tt = function() {
|
|
295
295
|
var e = this, t = e._self._c;
|
|
296
296
|
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
297
|
"m-0 bg-white px-3 py-[1em] text-zinc-900 drop-shadow-md": e.value === "edit"
|
|
@@ -302,15 +302,15 @@ var _t = function() {
|
|
|
302
302
|
}, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
|
|
303
303
|
e.value === "edit" && e.$emit("input", "preview");
|
|
304
304
|
} } }, [e.small ? t("CIcon", { attrs: { type: "eye", size: "16" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
305
|
+
}, Dt = [], Vt = /* @__PURE__ */ d(
|
|
306
|
+
St,
|
|
307
|
+
Tt,
|
|
308
|
+
Dt,
|
|
309
309
|
!1,
|
|
310
310
|
null,
|
|
311
311
|
null
|
|
312
312
|
);
|
|
313
|
-
const
|
|
313
|
+
const Bt = Vt.exports, Mt = {
|
|
314
314
|
name: "BlockControlButtons",
|
|
315
315
|
i18nOptions: {
|
|
316
316
|
namespace: "blockControlButtons",
|
|
@@ -342,7 +342,7 @@ const St = $t.exports, Tt = {
|
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
|
-
var
|
|
345
|
+
var It = function() {
|
|
346
346
|
var e = this, t = e._self._c;
|
|
347
347
|
return t("div", { staticClass: "control-root flex gap-2" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
348
348
|
return e.$emit("toggle-visible", !e.isVisible);
|
|
@@ -353,18 +353,18 @@ var Dt = function() {
|
|
|
353
353
|
} } }, [t("CIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
|
|
354
354
|
return e.$emit("remove");
|
|
355
355
|
} } }, [t("CIcon", { attrs: { type: "x", size: "16" } })], 1)]) : e._e()], 2);
|
|
356
|
-
},
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
356
|
+
}, Ft = [], Ht = /* @__PURE__ */ d(
|
|
357
|
+
Mt,
|
|
358
|
+
It,
|
|
359
|
+
Ft,
|
|
360
360
|
!1,
|
|
361
361
|
null,
|
|
362
362
|
"bfd61212"
|
|
363
363
|
);
|
|
364
|
-
const
|
|
364
|
+
const At = Ht.exports, Pt = {
|
|
365
365
|
name: "DynamicBlock",
|
|
366
366
|
components: {
|
|
367
|
-
BlockControlButtons:
|
|
367
|
+
BlockControlButtons: At
|
|
368
368
|
},
|
|
369
369
|
provide() {
|
|
370
370
|
return {
|
|
@@ -425,7 +425,7 @@ const Mt = Bt.exports, It = {
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
|
-
var
|
|
428
|
+
var Et = function() {
|
|
429
429
|
var e = this, t = e._self._c;
|
|
430
430
|
return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
|
|
431
431
|
{
|
|
@@ -448,15 +448,15 @@ var Ft = function() {
|
|
|
448
448
|
}, remove: function(a) {
|
|
449
449
|
return e.$emit("remove");
|
|
450
450
|
} } }, [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
|
-
|
|
451
|
+
}, zt = [], Zt = /* @__PURE__ */ d(
|
|
452
|
+
Pt,
|
|
453
|
+
Et,
|
|
454
|
+
zt,
|
|
455
455
|
!1,
|
|
456
456
|
null,
|
|
457
457
|
"ba9843e6"
|
|
458
458
|
);
|
|
459
|
-
const
|
|
459
|
+
const Ot = Zt.exports, Ut = {
|
|
460
460
|
name: "LogoBanner",
|
|
461
461
|
props: {
|
|
462
462
|
position: {
|
|
@@ -474,20 +474,20 @@ const Pt = At.exports, Et = {
|
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
};
|
|
477
|
-
var
|
|
477
|
+
var Rt = function() {
|
|
478
478
|
var e = this, t = e._self._c;
|
|
479
479
|
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
480
|
"_common:brand.domain"
|
|
481
481
|
)}?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
|
-
|
|
482
|
+
}, Gt = [], Wt = /* @__PURE__ */ d(
|
|
483
|
+
Ut,
|
|
484
|
+
Rt,
|
|
485
|
+
Gt,
|
|
486
486
|
!1,
|
|
487
487
|
null,
|
|
488
488
|
null
|
|
489
489
|
);
|
|
490
|
-
const
|
|
490
|
+
const qt = Wt.exports, Nt = {
|
|
491
491
|
name: "Draggable",
|
|
492
492
|
data() {
|
|
493
493
|
return {
|
|
@@ -508,7 +508,7 @@ const Ot = Ut.exports, Rt = {
|
|
|
508
508
|
this.elementWidth = e.width, this.elementHeight = e.height;
|
|
509
509
|
const t = i.type === "touchstart", a = t ? i.touches[0] : i;
|
|
510
510
|
this.clientX = a.clientX, this.clientY = a.clientY;
|
|
511
|
-
const
|
|
511
|
+
const n = t ? "touchmove" : "mousemove", s = t ? "touchend" : "mouseup", o = (r) => {
|
|
512
512
|
t || r.preventDefault();
|
|
513
513
|
const c = t ? r.touches[0] : r;
|
|
514
514
|
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 +519,9 @@ const Ot = Ut.exports, Rt = {
|
|
|
519
519
|
this.windowWidth - this.elementWidth
|
|
520
520
|
)}px`;
|
|
521
521
|
}, l = () => {
|
|
522
|
-
document.removeEventListener(
|
|
522
|
+
document.removeEventListener(n, o), document.removeEventListener(s, l);
|
|
523
523
|
};
|
|
524
|
-
document.addEventListener(
|
|
524
|
+
document.addEventListener(n, o), document.addEventListener(s, l);
|
|
525
525
|
}
|
|
526
526
|
},
|
|
527
527
|
render() {
|
|
@@ -529,18 +529,18 @@ const Ot = Ut.exports, Rt = {
|
|
|
529
529
|
dragMousedown: this.onDragMouseDown
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
|
-
},
|
|
533
|
-
var
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
532
|
+
}, jt = null, Kt = null;
|
|
533
|
+
var Yt = /* @__PURE__ */ d(
|
|
534
|
+
Nt,
|
|
535
|
+
jt,
|
|
536
|
+
Kt,
|
|
537
537
|
!1,
|
|
538
538
|
null,
|
|
539
539
|
null
|
|
540
540
|
);
|
|
541
|
-
const
|
|
541
|
+
const Qt = Yt.exports, Jt = {
|
|
542
542
|
components: {
|
|
543
|
-
Draggable:
|
|
543
|
+
Draggable: Qt
|
|
544
544
|
},
|
|
545
545
|
props: {
|
|
546
546
|
offset: {
|
|
@@ -553,35 +553,35 @@ const Nt = qt.exports, jt = {
|
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
};
|
|
556
|
-
var
|
|
556
|
+
var Xt = function() {
|
|
557
557
|
var e = this, t = e._self._c;
|
|
558
558
|
return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
|
|
559
559
|
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
560
|
top: "70px",
|
|
561
561
|
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(
|
|
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(n) {
|
|
563
563
|
return e.$emit("close");
|
|
564
564
|
} } }), 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
565
|
} }], null, !0) })], 1);
|
|
566
|
-
},
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
566
|
+
}, e1 = [], t1 = /* @__PURE__ */ d(
|
|
567
|
+
Jt,
|
|
568
|
+
Xt,
|
|
569
|
+
e1,
|
|
570
570
|
!1,
|
|
571
571
|
null,
|
|
572
572
|
"8029d5ea"
|
|
573
573
|
);
|
|
574
|
-
const
|
|
574
|
+
const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 = {
|
|
575
575
|
i18nOptions: {
|
|
576
576
|
namespaces: "common",
|
|
577
577
|
keyPrefix: "designLabels"
|
|
578
578
|
},
|
|
579
579
|
name: "Design",
|
|
580
580
|
components: {
|
|
581
|
-
FormInputRow:
|
|
582
|
-
DragWindow:
|
|
581
|
+
FormInputRow: K,
|
|
582
|
+
DragWindow: J
|
|
583
583
|
},
|
|
584
|
-
mixins: [
|
|
584
|
+
mixins: [D(["css"], { useEmit: !1, setFnName: "set" })],
|
|
585
585
|
props: {
|
|
586
586
|
set: {
|
|
587
587
|
type: Function,
|
|
@@ -658,15 +658,15 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
658
658
|
weight: t
|
|
659
659
|
}
|
|
660
660
|
},
|
|
661
|
-
onInput: ({ family: a, weight:
|
|
662
|
-
this.update(i, a),
|
|
661
|
+
onInput: ({ family: a, weight: n, options: s = [] }) => {
|
|
662
|
+
this.update(i, a), Ue(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
]
|
|
666
666
|
};
|
|
667
667
|
},
|
|
668
668
|
fontSize: ({ key: i, value: e }) => {
|
|
669
|
-
const [, t, a] =
|
|
669
|
+
const [, t, a] = k(e);
|
|
670
670
|
return {
|
|
671
671
|
label: this.$t("size"),
|
|
672
672
|
inputs: [
|
|
@@ -677,7 +677,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
677
677
|
value: t || "",
|
|
678
678
|
type: "number",
|
|
679
679
|
minValue: 0,
|
|
680
|
-
onInput: (
|
|
680
|
+
onInput: (n) => this.update(i, `${n}${a}`)
|
|
681
681
|
},
|
|
682
682
|
select: {
|
|
683
683
|
value: t || "px",
|
|
@@ -695,7 +695,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
695
695
|
{ value: 72, label: 72 },
|
|
696
696
|
{ value: 96, label: 96 }
|
|
697
697
|
],
|
|
698
|
-
onInput: (
|
|
698
|
+
onInput: (n) => this.update(i, `${n}px`)
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
},
|
|
@@ -707,7 +707,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
707
707
|
max: 100,
|
|
708
708
|
value: t
|
|
709
709
|
},
|
|
710
|
-
onInput: (
|
|
710
|
+
onInput: (n) => this.update(i, `${n}${a}`)
|
|
711
711
|
}
|
|
712
712
|
]
|
|
713
713
|
};
|
|
@@ -754,7 +754,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
754
754
|
};
|
|
755
755
|
},
|
|
756
756
|
letterSpacing: ({ key: i, value: e }) => {
|
|
757
|
-
const [, t = 0] =
|
|
757
|
+
const [, t = 0] = k(e);
|
|
758
758
|
return {
|
|
759
759
|
label: this.$t("letterSpacing"),
|
|
760
760
|
inputs: [
|
|
@@ -785,7 +785,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
785
785
|
};
|
|
786
786
|
},
|
|
787
787
|
marginBottom: ({ key: i, value: e }) => {
|
|
788
|
-
const [, t] =
|
|
788
|
+
const [, t] = k(e);
|
|
789
789
|
return {
|
|
790
790
|
label: this.$t("marginBottom"),
|
|
791
791
|
inputs: [
|
|
@@ -866,7 +866,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
866
866
|
]
|
|
867
867
|
}),
|
|
868
868
|
width: ({ key: i, value: e }) => {
|
|
869
|
-
const [, t, a] =
|
|
869
|
+
const [, t, a] = k(e);
|
|
870
870
|
return {
|
|
871
871
|
label: this.$t("contentWidth"),
|
|
872
872
|
inputs: [
|
|
@@ -877,7 +877,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
877
877
|
value: t || "",
|
|
878
878
|
type: "number",
|
|
879
879
|
minValue: 0,
|
|
880
|
-
onInput: (
|
|
880
|
+
onInput: (n) => this.update(i, `${n}${a}`)
|
|
881
881
|
},
|
|
882
882
|
select: {
|
|
883
883
|
value: t || "px",
|
|
@@ -887,7 +887,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
887
887
|
{ value: 900, label: 900 },
|
|
888
888
|
{ value: 1080, label: 1080 }
|
|
889
889
|
],
|
|
890
|
-
onInput: (
|
|
890
|
+
onInput: (n) => this.update(i, `${n}px`)
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
},
|
|
@@ -900,13 +900,13 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
900
900
|
step: 10,
|
|
901
901
|
value: t
|
|
902
902
|
},
|
|
903
|
-
onInput: (
|
|
903
|
+
onInput: (n) => this.update(i, `${n}${a}`)
|
|
904
904
|
}
|
|
905
905
|
]
|
|
906
906
|
};
|
|
907
907
|
},
|
|
908
908
|
padding: ({ key: i, value: e }) => {
|
|
909
|
-
const [, t] =
|
|
909
|
+
const [, t] = k(e);
|
|
910
910
|
return {
|
|
911
911
|
label: this.$t("padding"),
|
|
912
912
|
inputs: [
|
|
@@ -946,7 +946,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
946
946
|
};
|
|
947
947
|
},
|
|
948
948
|
border: ([i, e, t]) => {
|
|
949
|
-
const a = i.value === "solid", [,
|
|
949
|
+
const a = i.value === "solid", [, n] = k(e.value), s = [
|
|
950
950
|
{
|
|
951
951
|
label: this.$t("border"),
|
|
952
952
|
inputs: [
|
|
@@ -965,7 +965,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
965
965
|
{
|
|
966
966
|
component: "input",
|
|
967
967
|
props: {
|
|
968
|
-
value:
|
|
968
|
+
value: n,
|
|
969
969
|
type: "number",
|
|
970
970
|
minValue: 0
|
|
971
971
|
}
|
|
@@ -973,15 +973,15 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
973
973
|
{
|
|
974
974
|
component: "step",
|
|
975
975
|
props: {
|
|
976
|
-
value:
|
|
976
|
+
value: n
|
|
977
977
|
},
|
|
978
978
|
onIncrease: () => this.update(
|
|
979
979
|
e.key,
|
|
980
|
-
`${parseFloat(
|
|
980
|
+
`${parseFloat(n || 0) + 1}px`
|
|
981
981
|
),
|
|
982
982
|
onDecrease: () => this.update(
|
|
983
983
|
e.key,
|
|
984
|
-
`${parseFloat(
|
|
984
|
+
`${parseFloat(n || 0) - 1}px`
|
|
985
985
|
)
|
|
986
986
|
}
|
|
987
987
|
]
|
|
@@ -1006,7 +1006,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
1006
1006
|
value: a ? `${e.value} ${t.value}` : "none",
|
|
1007
1007
|
width: "220px",
|
|
1008
1008
|
popup: {
|
|
1009
|
-
inputs:
|
|
1009
|
+
inputs: s
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
@@ -1023,8 +1023,8 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
1023
1023
|
h2: e,
|
|
1024
1024
|
h3: t,
|
|
1025
1025
|
blockquote: a,
|
|
1026
|
-
p:
|
|
1027
|
-
'[data-typography="title"]':
|
|
1026
|
+
p: n,
|
|
1027
|
+
'[data-typography="title"]': s
|
|
1028
1028
|
} = this.css || {};
|
|
1029
1029
|
return [
|
|
1030
1030
|
{
|
|
@@ -1038,7 +1038,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
1038
1038
|
// calc(2.5 * var(--rem))
|
|
1039
1039
|
fontWeight: 800,
|
|
1040
1040
|
// 900
|
|
1041
|
-
...
|
|
1041
|
+
...s
|
|
1042
1042
|
}
|
|
1043
1043
|
},
|
|
1044
1044
|
{
|
|
@@ -1107,7 +1107,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
1107
1107
|
style: {
|
|
1108
1108
|
fontFamily: "Inter",
|
|
1109
1109
|
fontSize: "16px",
|
|
1110
|
-
...
|
|
1110
|
+
...n
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
1113
|
];
|
|
@@ -1115,9 +1115,9 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
1115
1115
|
activeItemOptions() {
|
|
1116
1116
|
if (!this.activeItem)
|
|
1117
1117
|
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[
|
|
1118
|
+
const { selector: i, category: e, style: t = {} } = this.activeItem, a = u(this.css, i) || {}, n = (s) => a[s] || t[s];
|
|
1119
|
+
return this[e].map(({ option: s, key: o }, l) => {
|
|
1120
|
+
const r = this.definitionOptions[s], c = Array.isArray(o) ? o.map((g) => ({ key: g, value: n(g) })) : { key: o, value: n(o) };
|
|
1121
1121
|
return r(c, l);
|
|
1122
1122
|
});
|
|
1123
1123
|
}
|
|
@@ -1125,7 +1125,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
1125
1125
|
watch: {
|
|
1126
1126
|
async activeItem(i) {
|
|
1127
1127
|
const e = u(i, "style.fontFamily");
|
|
1128
|
-
e && (this.fontWeightOptions = await
|
|
1128
|
+
e && (this.fontWeightOptions = await Re(e));
|
|
1129
1129
|
}
|
|
1130
1130
|
},
|
|
1131
1131
|
methods: {
|
|
@@ -1137,10 +1137,10 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
};
|
|
1140
|
-
var
|
|
1140
|
+
var n1 = function() {
|
|
1141
1141
|
var e = this, t = e._self._c;
|
|
1142
1142
|
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(
|
|
1143
|
+
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
|
|
1144
1144
|
e.activeItem = a;
|
|
1145
1145
|
} } }, [t("div", { style: {
|
|
1146
1146
|
fontSize: a.fontSize,
|
|
@@ -1150,21 +1150,21 @@ var e1 = function() {
|
|
|
1150
1150
|
lineHeight: 1
|
|
1151
1151
|
} }, [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
1152
|
})], 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(
|
|
1153
|
+
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
|
|
1154
1154
|
e.activeItem = a;
|
|
1155
1155
|
} } }, [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:
|
|
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, n) {
|
|
1157
|
+
return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
|
|
1158
1158
|
}), 1) : e._e()], 1);
|
|
1159
|
-
},
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1159
|
+
}, s1 = [], o1 = /* @__PURE__ */ d(
|
|
1160
|
+
a1,
|
|
1161
|
+
n1,
|
|
1162
|
+
s1,
|
|
1163
1163
|
!1,
|
|
1164
1164
|
null,
|
|
1165
1165
|
"83027693"
|
|
1166
1166
|
);
|
|
1167
|
-
const
|
|
1167
|
+
const l1 = o1.exports, r1 = {
|
|
1168
1168
|
i18nOptions: {
|
|
1169
1169
|
namespaces: "DocSettings",
|
|
1170
1170
|
messages: {
|
|
@@ -1252,11 +1252,11 @@ const a1 = i1.exports, s1 = {
|
|
|
1252
1252
|
},
|
|
1253
1253
|
name: "DocumentGeneralSettings",
|
|
1254
1254
|
components: {
|
|
1255
|
-
FormInputRow:
|
|
1256
|
-
DragWindow:
|
|
1255
|
+
FormInputRow: K,
|
|
1256
|
+
DragWindow: J
|
|
1257
1257
|
},
|
|
1258
1258
|
mixins: [
|
|
1259
|
-
|
|
1259
|
+
D([
|
|
1260
1260
|
"tags",
|
|
1261
1261
|
"series",
|
|
1262
1262
|
"senderId",
|
|
@@ -1280,7 +1280,7 @@ const a1 = i1.exports, s1 = {
|
|
|
1280
1280
|
};
|
|
1281
1281
|
},
|
|
1282
1282
|
computed: {
|
|
1283
|
-
...
|
|
1283
|
+
...C({
|
|
1284
1284
|
members: "companyUsers/all",
|
|
1285
1285
|
getMember: "companyUsers/byId",
|
|
1286
1286
|
isLoadingMembers: "companyUsers/isFetching"
|
|
@@ -1294,7 +1294,7 @@ const a1 = i1.exports, s1 = {
|
|
|
1294
1294
|
vatTypes() {
|
|
1295
1295
|
var e;
|
|
1296
1296
|
const i = ["vat"];
|
|
1297
|
-
return ((e =
|
|
1297
|
+
return ((e = le[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
|
|
1298
1298
|
},
|
|
1299
1299
|
options() {
|
|
1300
1300
|
return [
|
|
@@ -1325,7 +1325,7 @@ const a1 = i1.exports, s1 = {
|
|
|
1325
1325
|
component: "select",
|
|
1326
1326
|
props: {
|
|
1327
1327
|
value: this.language,
|
|
1328
|
-
options:
|
|
1328
|
+
options: re.map((i) => ({
|
|
1329
1329
|
value: i,
|
|
1330
1330
|
label: this.$t(`iso:language.${i}`)
|
|
1331
1331
|
})).sort((i, e) => i.label.localeCompare(e.label))
|
|
@@ -1478,8 +1478,8 @@ const a1 = i1.exports, s1 = {
|
|
|
1478
1478
|
this.isPublicForm || await this.loadUsers();
|
|
1479
1479
|
},
|
|
1480
1480
|
methods: {
|
|
1481
|
-
...
|
|
1482
|
-
loadUsers:
|
|
1481
|
+
...b({
|
|
1482
|
+
loadUsers: h.LOAD_COMPANY_USERS
|
|
1483
1483
|
}),
|
|
1484
1484
|
update(i, e) {
|
|
1485
1485
|
this[i] = e;
|
|
@@ -1498,24 +1498,24 @@ const a1 = i1.exports, s1 = {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
};
|
|
1501
|
-
var
|
|
1501
|
+
var c1 = function() {
|
|
1502
1502
|
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:
|
|
1503
|
+
return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
|
|
1504
|
+
return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
|
|
1505
1505
|
}), e.showDragWindow ? t("DragWindow", { attrs: { offset: e.offset, title: e.$t("pricing.title") }, on: { close: function(a) {
|
|
1506
1506
|
e.showDragWindow = !1;
|
|
1507
|
-
} } }, [e._l(e.priceOptions, function(a,
|
|
1508
|
-
return [a.type === "divider" ? t("div", { key:
|
|
1507
|
+
} } }, [e._l(e.priceOptions, function(a, n) {
|
|
1508
|
+
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
1509
|
})], 2) : e._e()], 2);
|
|
1510
|
-
},
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1510
|
+
}, d1 = [], p1 = /* @__PURE__ */ d(
|
|
1511
|
+
r1,
|
|
1512
|
+
c1,
|
|
1513
|
+
d1,
|
|
1514
1514
|
!1,
|
|
1515
1515
|
null,
|
|
1516
1516
|
"0bd59952"
|
|
1517
1517
|
);
|
|
1518
|
-
const
|
|
1518
|
+
const u1 = p1.exports, m1 = {
|
|
1519
1519
|
i18nOptions: {
|
|
1520
1520
|
messages: {
|
|
1521
1521
|
en: {
|
|
@@ -1558,10 +1558,10 @@ const r1 = l1.exports, c1 = {
|
|
|
1558
1558
|
},
|
|
1559
1559
|
name: "ExtensionTab",
|
|
1560
1560
|
components: {
|
|
1561
|
-
draggable:
|
|
1562
|
-
Spinner:
|
|
1561
|
+
draggable: Ye,
|
|
1562
|
+
Spinner: ce
|
|
1563
1563
|
},
|
|
1564
|
-
mixins: [
|
|
1564
|
+
mixins: [D(["externalReferences", "clients", "articles"])],
|
|
1565
1565
|
data() {
|
|
1566
1566
|
return {
|
|
1567
1567
|
activeCrm: null,
|
|
@@ -1578,7 +1578,7 @@ const r1 = l1.exports, c1 = {
|
|
|
1578
1578
|
};
|
|
1579
1579
|
},
|
|
1580
1580
|
computed: {
|
|
1581
|
-
...
|
|
1581
|
+
...C({
|
|
1582
1582
|
allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
|
|
1583
1583
|
}),
|
|
1584
1584
|
currExternalReferences() {
|
|
@@ -1613,7 +1613,7 @@ const r1 = l1.exports, c1 = {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
},
|
|
1615
1615
|
methods: {
|
|
1616
|
-
priceFormat:
|
|
1616
|
+
priceFormat: R,
|
|
1617
1617
|
async _search(i) {
|
|
1618
1618
|
try {
|
|
1619
1619
|
this.isSearching = !0;
|
|
@@ -1624,7 +1624,7 @@ const r1 = l1.exports, c1 = {
|
|
|
1624
1624
|
this.searchResults = [];
|
|
1625
1625
|
return;
|
|
1626
1626
|
}
|
|
1627
|
-
const { data: t } = await
|
|
1627
|
+
const { data: t } = await T.search(this.activeCrm, {
|
|
1628
1628
|
query: i,
|
|
1629
1629
|
type: "deal"
|
|
1630
1630
|
});
|
|
@@ -1633,7 +1633,7 @@ const r1 = l1.exports, c1 = {
|
|
|
1633
1633
|
this.isSearching = !1;
|
|
1634
1634
|
}
|
|
1635
1635
|
},
|
|
1636
|
-
search:
|
|
1636
|
+
search: z(async function(e) {
|
|
1637
1637
|
await this._search(e);
|
|
1638
1638
|
}, 750),
|
|
1639
1639
|
useSearchResult(i) {
|
|
@@ -1660,11 +1660,11 @@ const r1 = l1.exports, c1 = {
|
|
|
1660
1660
|
);
|
|
1661
1661
|
if (!e)
|
|
1662
1662
|
return;
|
|
1663
|
-
const { service: t, type: a, typeId:
|
|
1663
|
+
const { service: t, type: a, typeId: n } = e, { data: s } = await T.getExternalReferenceDetails(
|
|
1664
1664
|
t,
|
|
1665
|
-
{ type: a, typeId:
|
|
1665
|
+
{ type: a, typeId: n }
|
|
1666
1666
|
);
|
|
1667
|
-
i !== this.dealType ? this.typeDetails = { ...
|
|
1667
|
+
i !== this.dealType ? this.typeDetails = { ...s, type: i } : this.dealDetails = s;
|
|
1668
1668
|
} catch {
|
|
1669
1669
|
i !== this.dealType ? this.typeDetails = null : this.dealDetails = null;
|
|
1670
1670
|
} finally {
|
|
@@ -1673,42 +1673,42 @@ const r1 = l1.exports, c1 = {
|
|
|
1673
1673
|
},
|
|
1674
1674
|
removeReference(i = this.dealType) {
|
|
1675
1675
|
const e = this.externalReferences.find(
|
|
1676
|
-
(
|
|
1676
|
+
(s) => s.service === this.activeCrm && s.type === i
|
|
1677
1677
|
);
|
|
1678
1678
|
if (!e)
|
|
1679
1679
|
return;
|
|
1680
|
-
const { service: t, type: a, typeId:
|
|
1681
|
-
!t || !a || !
|
|
1682
|
-
(
|
|
1680
|
+
const { service: t, type: a, typeId: n } = e;
|
|
1681
|
+
!t || !a || !n || (this.externalReferences = this.externalReferences.filter(
|
|
1682
|
+
(s) => !(s.service === t && s.type === a && s.typeId === n)
|
|
1683
1683
|
), i !== this.dealType ? this.typeDetails = null : this.dealDetails = null);
|
|
1684
1684
|
},
|
|
1685
1685
|
async suggestClients() {
|
|
1686
|
-
var
|
|
1687
|
-
const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await
|
|
1686
|
+
var n;
|
|
1687
|
+
const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await T.suggestClients(i, {
|
|
1688
1688
|
type: e,
|
|
1689
1689
|
typeId: t
|
|
1690
1690
|
});
|
|
1691
1691
|
if (Array.isArray(a) && a.length) {
|
|
1692
|
-
const
|
|
1693
|
-
...
|
|
1694
|
-
...
|
|
1692
|
+
const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
|
|
1693
|
+
...de(),
|
|
1694
|
+
...s && { answerMethod: s },
|
|
1695
1695
|
...l
|
|
1696
1696
|
}));
|
|
1697
1697
|
this.clients = [...this.clients || [], ...o];
|
|
1698
1698
|
}
|
|
1699
1699
|
},
|
|
1700
1700
|
cloneArticle(i) {
|
|
1701
|
-
return
|
|
1701
|
+
return x({
|
|
1702
1702
|
...i,
|
|
1703
1703
|
_uniqueId: void 0
|
|
1704
1704
|
});
|
|
1705
1705
|
},
|
|
1706
1706
|
addArticle(i) {
|
|
1707
|
-
var a,
|
|
1708
|
-
const [e] = ((
|
|
1707
|
+
var a, n;
|
|
1708
|
+
const [e] = ((n = (a = this._document) == null ? void 0 : a.packageGroups) == null ? void 0 : n.packages) || [];
|
|
1709
1709
|
if (!(e != null && e.packageId))
|
|
1710
1710
|
return;
|
|
1711
|
-
const t =
|
|
1711
|
+
const t = x({
|
|
1712
1712
|
...i,
|
|
1713
1713
|
_uniqueId: void 0,
|
|
1714
1714
|
packageId: e.packageId
|
|
@@ -1720,13 +1720,15 @@ const r1 = l1.exports, c1 = {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
1722
|
};
|
|
1723
|
-
var
|
|
1723
|
+
var h1 = function() {
|
|
1724
1724
|
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("
|
|
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" }, scopedSlots: e._u([{ key: "trigger", fn: function() {
|
|
1726
|
+
return [t("CButton", { attrs: { size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" } })];
|
|
1727
|
+
}, proxy: !0 }], null, !1, 1198894702) }, e._l(e.allAuthenticatedCRMs, function(a) {
|
|
1728
|
+
return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
|
|
1727
1729
|
e.activeCrm = a;
|
|
1728
1730
|
} } }, [e._v(" " + e._s(a.capitalize()) + " ")]);
|
|
1729
|
-
})
|
|
1731
|
+
}), 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
1732
|
e.$t("referenceTo", {
|
|
1731
1733
|
crm: e.activeCrm.capitalize(),
|
|
1732
1734
|
type: e.$t(`type.${e.typeDetails.type}`)
|
|
@@ -1744,10 +1746,12 @@ var d1 = function() {
|
|
|
1744
1746
|
}, select: function(a) {
|
|
1745
1747
|
return e.useSearchResult(a);
|
|
1746
1748
|
} }, 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
|
-
} }
|
|
1749
|
+
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)])];
|
|
1750
|
+
} }, { key: "empty", fn: function() {
|
|
1751
|
+
return [e._v(" " + e._s(e.$t("_common:noResults")) + " ")];
|
|
1752
|
+
}, proxy: !0 }]), model: { value: e.searchQuery, callback: function(a) {
|
|
1749
1753
|
e.searchQuery = a;
|
|
1750
|
-
}, expression: "searchQuery" } }
|
|
1754
|
+
}, 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
1755
|
'Use a product by drag & dropping a product to a package.'
|
|
1752
1756
|
` }], attrs: { type: "info", size: "13" } })], 1), t("div", { staticClass: "text-gray-600", domProps: { textContent: e._s(
|
|
1753
1757
|
e.$t("productsText", {
|
|
@@ -1759,19 +1763,19 @@ var d1 = function() {
|
|
|
1759
1763
|
pull: "clone",
|
|
1760
1764
|
put: !1
|
|
1761
1765
|
}, 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(
|
|
1766
|
+
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
1767
|
return e.addArticle(a);
|
|
1764
1768
|
} } }, [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
1769
|
}), 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
|
-
|
|
1770
|
+
}, f1 = [], g1 = /* @__PURE__ */ d(
|
|
1771
|
+
m1,
|
|
1772
|
+
h1,
|
|
1773
|
+
f1,
|
|
1770
1774
|
!1,
|
|
1771
1775
|
null,
|
|
1772
|
-
"
|
|
1776
|
+
"0c00e6a6"
|
|
1773
1777
|
);
|
|
1774
|
-
const
|
|
1778
|
+
const C1 = g1.exports, v1 = {
|
|
1775
1779
|
name: "FieldsModal",
|
|
1776
1780
|
i18nOptions: {
|
|
1777
1781
|
namespaces: "FieldsModal",
|
|
@@ -1805,7 +1809,7 @@ const m1 = u1.exports, h1 = {
|
|
|
1805
1809
|
}
|
|
1806
1810
|
},
|
|
1807
1811
|
components: {
|
|
1808
|
-
CField:
|
|
1812
|
+
CField: Y
|
|
1809
1813
|
},
|
|
1810
1814
|
props: {
|
|
1811
1815
|
document: {
|
|
@@ -1836,12 +1840,12 @@ const m1 = u1.exports, h1 = {
|
|
|
1836
1840
|
validations: {
|
|
1837
1841
|
form: {
|
|
1838
1842
|
label: {
|
|
1839
|
-
required:
|
|
1843
|
+
required: A.required,
|
|
1840
1844
|
isUniqueLabel(i) {
|
|
1841
1845
|
return this.fields.reduce((t, { label: a }) => a === i ? !1 : t, !0);
|
|
1842
1846
|
}
|
|
1843
1847
|
},
|
|
1844
|
-
value: { required:
|
|
1848
|
+
value: { required: A.required }
|
|
1845
1849
|
}
|
|
1846
1850
|
},
|
|
1847
1851
|
computed: {
|
|
@@ -1881,12 +1885,12 @@ const m1 = u1.exports, h1 = {
|
|
|
1881
1885
|
remove() {
|
|
1882
1886
|
if (!this.existingFieldId)
|
|
1883
1887
|
return;
|
|
1884
|
-
const i =
|
|
1888
|
+
const i = et(this.document.fields, [this.existingFieldId]);
|
|
1885
1889
|
this.set({ key: "data.fields", value: i }), this.$emit("close");
|
|
1886
1890
|
}
|
|
1887
1891
|
}
|
|
1888
1892
|
};
|
|
1889
|
-
var
|
|
1893
|
+
var y1 = function() {
|
|
1890
1894
|
var e = this, t = e._self._c;
|
|
1891
1895
|
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
1896
|
return a.preventDefault(), e.submit.apply(null, arguments);
|
|
@@ -1897,15 +1901,15 @@ var f1 = function() {
|
|
|
1897
1901
|
}, 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
1902
|
e.$set(e.form, "value", a);
|
|
1899
1903
|
}, 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
|
-
|
|
1904
|
+
}, x1 = [], w1 = /* @__PURE__ */ d(
|
|
1905
|
+
v1,
|
|
1906
|
+
y1,
|
|
1907
|
+
x1,
|
|
1904
1908
|
!1,
|
|
1905
1909
|
null,
|
|
1906
1910
|
"455b4cda"
|
|
1907
1911
|
);
|
|
1908
|
-
const
|
|
1912
|
+
const b1 = w1.exports, k1 = {
|
|
1909
1913
|
i18nOptions: {
|
|
1910
1914
|
namespaces: "DocumentFormFields",
|
|
1911
1915
|
messages: {
|
|
@@ -1929,11 +1933,11 @@ const v1 = C1.exports, y1 = {
|
|
|
1929
1933
|
},
|
|
1930
1934
|
name: "DocumentFormFields",
|
|
1931
1935
|
components: {
|
|
1932
|
-
SmartList:
|
|
1933
|
-
CAccordion:
|
|
1934
|
-
CField:
|
|
1936
|
+
SmartList: Xe,
|
|
1937
|
+
CAccordion: Qe,
|
|
1938
|
+
CField: Y
|
|
1935
1939
|
},
|
|
1936
|
-
mixins: [
|
|
1940
|
+
mixins: [D()],
|
|
1937
1941
|
props: {
|
|
1938
1942
|
set: {
|
|
1939
1943
|
type: Function,
|
|
@@ -1954,7 +1958,7 @@ const v1 = C1.exports, y1 = {
|
|
|
1954
1958
|
options() {
|
|
1955
1959
|
const { fields: i, usedFields: e } = this._document;
|
|
1956
1960
|
return Object.keys(i).map((t) => {
|
|
1957
|
-
const a = i[t], { service:
|
|
1961
|
+
const a = i[t], { service: n, inputDisabled: s, virtual: o = !1 } = a.meta || {}, l = this.crmService && n === this.crmService ? a.meta.service : null;
|
|
1958
1962
|
return {
|
|
1959
1963
|
...a,
|
|
1960
1964
|
id: t,
|
|
@@ -1962,7 +1966,7 @@ const v1 = C1.exports, y1 = {
|
|
|
1962
1966
|
onInput: (r) => this.updateValue(a.key, r),
|
|
1963
1967
|
usedCount: e[a.key] || 0,
|
|
1964
1968
|
crm: l,
|
|
1965
|
-
inputDisabled:
|
|
1969
|
+
inputDisabled: s || l,
|
|
1966
1970
|
virtual: o
|
|
1967
1971
|
};
|
|
1968
1972
|
});
|
|
@@ -1987,13 +1991,13 @@ const v1 = C1.exports, y1 = {
|
|
|
1987
1991
|
async handler(i) {
|
|
1988
1992
|
var e, t;
|
|
1989
1993
|
if (this.isEditingTemplate && i) {
|
|
1990
|
-
const { data: a } = await
|
|
1994
|
+
const { data: a } = await T.getFields(i);
|
|
1991
1995
|
this.updateValue("data.fields", {
|
|
1992
1996
|
// crmFields added first in order to not override same service values
|
|
1993
1997
|
...a,
|
|
1994
1998
|
// Filter out previous service fields if switching connected crm
|
|
1995
1999
|
...Object.entries(((t = (e = this._document) == null ? void 0 : e.data) == null ? void 0 : t.fields) || {}).reduce(
|
|
1996
|
-
(
|
|
2000
|
+
(n, [s, o]) => o != null && o.meta.service && o.meta.service !== i ? n : { ...n, [s]: o },
|
|
1997
2001
|
{}
|
|
1998
2002
|
)
|
|
1999
2003
|
});
|
|
@@ -2007,7 +2011,7 @@ const v1 = C1.exports, y1 = {
|
|
|
2007
2011
|
},
|
|
2008
2012
|
openFieldModal({ existingFieldId: i }) {
|
|
2009
2013
|
this.$modal.show(
|
|
2010
|
-
|
|
2014
|
+
b1,
|
|
2011
2015
|
{
|
|
2012
2016
|
document: this._document,
|
|
2013
2017
|
set: this.set,
|
|
@@ -2026,7 +2030,7 @@ const v1 = C1.exports, y1 = {
|
|
|
2026
2030
|
);
|
|
2027
2031
|
},
|
|
2028
2032
|
onCopyField(i) {
|
|
2029
|
-
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() =>
|
|
2033
|
+
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => P("info", this.$t("_common:copyMessage"))).catch((e) => B(e));
|
|
2030
2034
|
},
|
|
2031
2035
|
filterMethod(i, e) {
|
|
2032
2036
|
return e.filter(
|
|
@@ -2039,22 +2043,22 @@ const v1 = C1.exports, y1 = {
|
|
|
2039
2043
|
}
|
|
2040
2044
|
}
|
|
2041
2045
|
};
|
|
2042
|
-
var
|
|
2046
|
+
var _1 = function() {
|
|
2043
2047
|
var e = this, t = e._self._c;
|
|
2044
2048
|
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
2049
|
e.query = a;
|
|
2046
2050
|
}, 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:
|
|
2051
|
+
return [t("div", [a.length ? e._l(a, function(n, s) {
|
|
2052
|
+
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
2053
|
var l;
|
|
2050
|
-
return
|
|
2051
|
-
} } })], 1), t("div", { staticClass: "field-actions" }, [!
|
|
2052
|
-
return e.openFieldModal({ existingFieldId:
|
|
2054
|
+
return n.onInput(((l = o == null ? void 0 : o.target) == null ? void 0 : l.value) || "");
|
|
2055
|
+
} } })], 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) {
|
|
2056
|
+
return e.openFieldModal({ existingFieldId: n.id });
|
|
2053
2057
|
} } }) : 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(`{{${
|
|
2058
|
+
return e.onCopyField(`{{${n.key}}}`);
|
|
2055
2059
|
} } })], 1)], 1)]);
|
|
2056
|
-
}) : t("div", { staticStyle: { "text-align": "center" } }, [e._v(" " + e._s(e.$t("_common:noResults")) + " ")])], 2);
|
|
2057
|
-
} }], null, !1,
|
|
2060
|
+
}) : t("div", { staticStyle: { "text-align": "center" } }, [e._v(" " + e._s(e.$t("_common:noResults")) + " ")])], 2)];
|
|
2061
|
+
} }], 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
2062
|
{
|
|
2059
2063
|
label: e.$t("usedFields"),
|
|
2060
2064
|
defaultOpen: !0,
|
|
@@ -2072,29 +2076,29 @@ var x1 = function() {
|
|
|
2072
2076
|
defaultOpen: !e.usedFields.length,
|
|
2073
2077
|
items: e.unUsedFields
|
|
2074
2078
|
}
|
|
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(
|
|
2079
|
+
], function(a, n) {
|
|
2080
|
+
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 }) {
|
|
2081
|
+
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)];
|
|
2082
|
+
} }], null, !0) }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [a.items.length ? e._l(a.items, function(s, o) {
|
|
2083
|
+
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
2084
|
var r;
|
|
2081
|
-
return
|
|
2082
|
-
} } })], 1), t("div", { staticClass: "field-actions" }, [!
|
|
2083
|
-
return e.openFieldModal({ existingFieldId:
|
|
2085
|
+
return s.onInput(((r = l == null ? void 0 : l.target) == null ? void 0 : r.value) || "");
|
|
2086
|
+
} } })], 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) {
|
|
2087
|
+
return e.openFieldModal({ existingFieldId: s.id });
|
|
2084
2088
|
} } }) : 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(`{{${
|
|
2089
|
+
return e.onCopyField(`{{${s.key}}}`);
|
|
2086
2090
|
} } })], 1)], 1)]);
|
|
2087
2091
|
}) : 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
2092
|
})], 2)], 1);
|
|
2089
|
-
},
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
+
}, L1 = [], $1 = /* @__PURE__ */ d(
|
|
2094
|
+
k1,
|
|
2095
|
+
_1,
|
|
2096
|
+
L1,
|
|
2093
2097
|
!1,
|
|
2094
2098
|
null,
|
|
2095
|
-
"
|
|
2099
|
+
"4f611d41"
|
|
2096
2100
|
);
|
|
2097
|
-
const
|
|
2101
|
+
const S1 = $1.exports, T1 = (i) => {
|
|
2098
2102
|
const e = Array(2).fill().map(() => p());
|
|
2099
2103
|
return [
|
|
2100
2104
|
{
|
|
@@ -2116,11 +2120,11 @@ const k1 = b1.exports, _1 = (i) => {
|
|
|
2116
2120
|
nodeId: e[1]
|
|
2117
2121
|
}
|
|
2118
2122
|
];
|
|
2119
|
-
},
|
|
2123
|
+
}, D1 = (i, e = "en") => [
|
|
2120
2124
|
{
|
|
2121
2125
|
key: `title-${i}`,
|
|
2122
2126
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
2123
|
-
defaultValue:
|
|
2127
|
+
defaultValue: m.t("attachment_plural", { lng: e }).capitalize()
|
|
2124
2128
|
},
|
|
2125
2129
|
{
|
|
2126
2130
|
key: `files-${i}`,
|
|
@@ -2129,13 +2133,13 @@ const k1 = b1.exports, _1 = (i) => {
|
|
|
2129
2133
|
$ref: `${f.api.baseUrl}/schemas/file/1.json`
|
|
2130
2134
|
}
|
|
2131
2135
|
}
|
|
2132
|
-
],
|
|
2136
|
+
], V1 = ({ document: i = null }) => {
|
|
2133
2137
|
const e = p(), { language: t } = i || {};
|
|
2134
2138
|
return {
|
|
2135
|
-
readView:
|
|
2136
|
-
validation:
|
|
2139
|
+
readView: T1(e),
|
|
2140
|
+
validation: D1(e, t)
|
|
2137
2141
|
};
|
|
2138
|
-
},
|
|
2142
|
+
}, B1 = (i) => [
|
|
2139
2143
|
{
|
|
2140
2144
|
itemId: "coverBlock",
|
|
2141
2145
|
itemType: "coverBlock",
|
|
@@ -2145,12 +2149,12 @@ const k1 = b1.exports, _1 = (i) => {
|
|
|
2145
2149
|
parentId: "0",
|
|
2146
2150
|
nodeId: p()
|
|
2147
2151
|
}
|
|
2148
|
-
],
|
|
2152
|
+
], M1 = (i, e = "en") => [
|
|
2149
2153
|
{
|
|
2150
2154
|
key: `coverBlock-${i}`,
|
|
2151
2155
|
defaultValue: {
|
|
2152
2156
|
type: "video",
|
|
2153
|
-
text: `<p data-typography="title">${
|
|
2157
|
+
text: `<p data-typography="title">${m.t("components:document.coverBlock.defaultText", { lng: e })}</p>`,
|
|
2154
2158
|
cover: {
|
|
2155
2159
|
video: {
|
|
2156
2160
|
id: "1409899",
|
|
@@ -2162,7 +2166,7 @@ const k1 = b1.exports, _1 = (i) => {
|
|
|
2162
2166
|
},
|
|
2163
2167
|
$ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
|
|
2164
2168
|
}
|
|
2165
|
-
],
|
|
2169
|
+
], I1 = (i) => ({
|
|
2166
2170
|
[`data.coverBlock-${i}`]: {
|
|
2167
2171
|
text: "<h1>We know communication</h1>",
|
|
2168
2172
|
cover: {
|
|
@@ -2172,20 +2176,20 @@ const k1 = b1.exports, _1 = (i) => {
|
|
|
2172
2176
|
blur: 0
|
|
2173
2177
|
}
|
|
2174
2178
|
}
|
|
2175
|
-
}),
|
|
2179
|
+
}), F1 = ({
|
|
2176
2180
|
includeMockData: i = !1,
|
|
2177
2181
|
document: e = null,
|
|
2178
2182
|
contentData: t = null
|
|
2179
2183
|
} = {}) => {
|
|
2180
|
-
const a = p(), { language:
|
|
2181
|
-
let
|
|
2182
|
-
return typeof t == "function" ?
|
|
2183
|
-
readView:
|
|
2184
|
-
validation:
|
|
2185
|
-
...
|
|
2184
|
+
const a = p(), { language: n } = e || {};
|
|
2185
|
+
let s = null;
|
|
2186
|
+
return typeof t == "function" ? s = t(a) : i && (s = I1(a)), {
|
|
2187
|
+
readView: B1(a),
|
|
2188
|
+
validation: M1(a, n),
|
|
2189
|
+
...s && { data: s }
|
|
2186
2190
|
};
|
|
2187
|
-
},
|
|
2188
|
-
const e = (t) =>
|
|
2191
|
+
}, H1 = ({ language: i = "en" } = {}) => {
|
|
2192
|
+
const e = (t) => m.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
|
|
2189
2193
|
lng: i
|
|
2190
2194
|
});
|
|
2191
2195
|
return [
|
|
@@ -2329,7 +2333,7 @@ const k1 = b1.exports, _1 = (i) => {
|
|
|
2329
2333
|
})
|
|
2330
2334
|
}
|
|
2331
2335
|
];
|
|
2332
|
-
},
|
|
2336
|
+
}, A1 = () => {
|
|
2333
2337
|
const i = Array(5).fill().map(() => p());
|
|
2334
2338
|
return [
|
|
2335
2339
|
{
|
|
@@ -2378,7 +2382,7 @@ const k1 = b1.exports, _1 = (i) => {
|
|
|
2378
2382
|
nodeId: i[4]
|
|
2379
2383
|
}
|
|
2380
2384
|
];
|
|
2381
|
-
},
|
|
2385
|
+
}, P1 = () => ({
|
|
2382
2386
|
clients: [
|
|
2383
2387
|
{
|
|
2384
2388
|
name: "Pernilla P.",
|
|
@@ -2390,28 +2394,28 @@ const k1 = b1.exports, _1 = (i) => {
|
|
|
2390
2394
|
answerMethod: { accept: "signature", deny: "button" }
|
|
2391
2395
|
}
|
|
2392
2396
|
]
|
|
2393
|
-
}),
|
|
2397
|
+
}), E1 = (i = "en") => [
|
|
2394
2398
|
{ key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
2395
2399
|
{ key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
2396
2400
|
{
|
|
2397
2401
|
key: "partiesString",
|
|
2398
2402
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
2399
|
-
defaultValue:
|
|
2403
|
+
defaultValue: m.t("components:document.chapters.parties.title", { lng: i })
|
|
2400
2404
|
}
|
|
2401
|
-
],
|
|
2405
|
+
], z1 = ({
|
|
2402
2406
|
includeMockData: i = !1,
|
|
2403
2407
|
document: e = null,
|
|
2404
2408
|
contentData: t = null
|
|
2405
2409
|
}) => {
|
|
2406
2410
|
const { language: a } = e || {};
|
|
2407
|
-
let
|
|
2408
|
-
return typeof t == "function" ?
|
|
2409
|
-
readView:
|
|
2410
|
-
validation:
|
|
2411
|
+
let n = null;
|
|
2412
|
+
return typeof t == "function" ? n = t() : i && (n = P1()), {
|
|
2413
|
+
readView: A1(),
|
|
2414
|
+
validation: E1(a),
|
|
2411
2415
|
// Client / company will for now always exist on doc and in validation
|
|
2412
|
-
...
|
|
2416
|
+
...n && { data: n }
|
|
2413
2417
|
};
|
|
2414
|
-
},
|
|
2418
|
+
}, Z1 = (i) => [
|
|
2415
2419
|
{
|
|
2416
2420
|
itemId: "embed",
|
|
2417
2421
|
itemType: "embed",
|
|
@@ -2425,7 +2429,7 @@ const k1 = b1.exports, _1 = (i) => {
|
|
|
2425
2429
|
parentId: "0",
|
|
2426
2430
|
nodeId: p()
|
|
2427
2431
|
}
|
|
2428
|
-
],
|
|
2432
|
+
], O1 = (i) => [
|
|
2429
2433
|
{
|
|
2430
2434
|
key: `embed-${i}`,
|
|
2431
2435
|
$ref: `${f.api.baseUrl}/schemas/embed/1.json`,
|
|
@@ -2434,20 +2438,20 @@ const k1 = b1.exports, _1 = (i) => {
|
|
|
2434
2438
|
size: "small"
|
|
2435
2439
|
}
|
|
2436
2440
|
}
|
|
2437
|
-
],
|
|
2441
|
+
], U1 = () => null, R1 = ({
|
|
2438
2442
|
includeMockData: i = !1,
|
|
2439
2443
|
document: e = null,
|
|
2440
2444
|
contentData: t = null
|
|
2441
2445
|
} = {}) => {
|
|
2442
2446
|
const a = p();
|
|
2443
|
-
let
|
|
2444
|
-
return typeof t == "function" ?
|
|
2445
|
-
readView:
|
|
2446
|
-
validation:
|
|
2447
|
-
...
|
|
2447
|
+
let n = null;
|
|
2448
|
+
return typeof t == "function" ? n = t(a) : i && (n = U1()), {
|
|
2449
|
+
readView: Z1(a),
|
|
2450
|
+
validation: O1(a),
|
|
2451
|
+
...n && { data: n }
|
|
2448
2452
|
};
|
|
2449
2453
|
};
|
|
2450
|
-
|
|
2454
|
+
m.loadOptions({
|
|
2451
2455
|
namespaces: "embedContentItems",
|
|
2452
2456
|
messages: {
|
|
2453
2457
|
en: {
|
|
@@ -2458,7 +2462,7 @@ h.loadOptions({
|
|
|
2458
2462
|
}
|
|
2459
2463
|
}
|
|
2460
2464
|
});
|
|
2461
|
-
const
|
|
2465
|
+
const G1 = ({ language: i = "en" } = {}) => [
|
|
2462
2466
|
{
|
|
2463
2467
|
previewUrl: `
|
|
2464
2468
|
<div style="position: relative;">
|
|
@@ -2517,7 +2521,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
2517
2521
|
</defs>
|
|
2518
2522
|
</svg>
|
|
2519
2523
|
<div class="submenu-item-badge">
|
|
2520
|
-
${
|
|
2524
|
+
${m.t("embedContentItems:previewTitle", { lng: i })}
|
|
2521
2525
|
</div>
|
|
2522
2526
|
</div>
|
|
2523
2527
|
`,
|
|
@@ -2752,7 +2756,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
2752
2756
|
}
|
|
2753
2757
|
})
|
|
2754
2758
|
}
|
|
2755
|
-
],
|
|
2759
|
+
], W1 = (i) => {
|
|
2756
2760
|
const e = Array(3).fill().map(() => p());
|
|
2757
2761
|
return [
|
|
2758
2762
|
{
|
|
@@ -2788,7 +2792,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
2788
2792
|
nodeId: e[2]
|
|
2789
2793
|
}
|
|
2790
2794
|
];
|
|
2791
|
-
},
|
|
2795
|
+
}, q1 = (i) => [
|
|
2792
2796
|
{
|
|
2793
2797
|
key: `estimatedTimeComplete-${i}`,
|
|
2794
2798
|
type: "object",
|
|
@@ -2806,23 +2810,23 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
2806
2810
|
}
|
|
2807
2811
|
}
|
|
2808
2812
|
}
|
|
2809
|
-
],
|
|
2813
|
+
], N1 = (i) => ({
|
|
2810
2814
|
[`estimatedTimeComplete-${i}`]: {
|
|
2811
2815
|
value: 4,
|
|
2812
2816
|
unitType: "hour"
|
|
2813
2817
|
}
|
|
2814
|
-
}),
|
|
2818
|
+
}), j1 = ({
|
|
2815
2819
|
includeMockData: i = !1,
|
|
2816
2820
|
contentData: e = null
|
|
2817
2821
|
}) => {
|
|
2818
2822
|
const t = p();
|
|
2819
2823
|
let a = null;
|
|
2820
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
2821
|
-
readView:
|
|
2822
|
-
validation:
|
|
2824
|
+
return typeof e == "function" ? a = e(t) : i && (a = N1(t)), {
|
|
2825
|
+
readView: W1(t),
|
|
2826
|
+
validation: q1(t),
|
|
2823
2827
|
...a && { data: a }
|
|
2824
2828
|
};
|
|
2825
|
-
},
|
|
2829
|
+
}, K1 = () => {
|
|
2826
2830
|
const i = Array(3).fill().map(() => p());
|
|
2827
2831
|
return [
|
|
2828
2832
|
{
|
|
@@ -2856,7 +2860,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
2856
2860
|
nodeId: i[2]
|
|
2857
2861
|
}
|
|
2858
2862
|
];
|
|
2859
|
-
},
|
|
2863
|
+
}, Y1 = () => [
|
|
2860
2864
|
{
|
|
2861
2865
|
key: "estimatedWorkDates",
|
|
2862
2866
|
type: "object",
|
|
@@ -2865,10 +2869,10 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
2865
2869
|
endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
|
|
2866
2870
|
}
|
|
2867
2871
|
}
|
|
2868
|
-
],
|
|
2869
|
-
readView:
|
|
2870
|
-
validation:
|
|
2871
|
-
}),
|
|
2872
|
+
], Q1 = () => ({
|
|
2873
|
+
readView: K1(),
|
|
2874
|
+
validation: Y1()
|
|
2875
|
+
}), J1 = () => {
|
|
2872
2876
|
const i = Array(5).fill().map(() => p());
|
|
2873
2877
|
return [
|
|
2874
2878
|
{
|
|
@@ -2934,7 +2938,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
2934
2938
|
nodeId: i[4]
|
|
2935
2939
|
}
|
|
2936
2940
|
];
|
|
2937
|
-
},
|
|
2941
|
+
}, X1 = () => [
|
|
2938
2942
|
{
|
|
2939
2943
|
key: "extraWorkConstruction",
|
|
2940
2944
|
extraWorkConstruction: {
|
|
@@ -2958,11 +2962,11 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
2958
2962
|
}
|
|
2959
2963
|
}
|
|
2960
2964
|
}
|
|
2961
|
-
],
|
|
2962
|
-
readView:
|
|
2963
|
-
validation:
|
|
2965
|
+
], e2 = () => ({
|
|
2966
|
+
readView: J1(),
|
|
2967
|
+
validation: X1()
|
|
2964
2968
|
// Client / company will for now always exist on doc and in validation
|
|
2965
|
-
}),
|
|
2969
|
+
}), t2 = () => {
|
|
2966
2970
|
const i = Array(3).fill().map(() => p());
|
|
2967
2971
|
return [
|
|
2968
2972
|
{
|
|
@@ -3002,7 +3006,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
3002
3006
|
nodeId: i[2]
|
|
3003
3007
|
}
|
|
3004
3008
|
];
|
|
3005
|
-
},
|
|
3009
|
+
}, i2 = () => [
|
|
3006
3010
|
{
|
|
3007
3011
|
key: "extraWorkTimeImpact",
|
|
3008
3012
|
anyOf: [
|
|
@@ -3020,10 +3024,10 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
3020
3024
|
}
|
|
3021
3025
|
]
|
|
3022
3026
|
}
|
|
3023
|
-
],
|
|
3024
|
-
readView:
|
|
3025
|
-
validation:
|
|
3026
|
-
}),
|
|
3027
|
+
], a2 = () => ({
|
|
3028
|
+
readView: t2(),
|
|
3029
|
+
validation: i2()
|
|
3030
|
+
}), n2 = (i) => [
|
|
3027
3031
|
{
|
|
3028
3032
|
itemId: `header-${i}`,
|
|
3029
3033
|
itemType: "header",
|
|
@@ -3033,14 +3037,14 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
3033
3037
|
parentId: "0",
|
|
3034
3038
|
nodeId: p()
|
|
3035
3039
|
}
|
|
3036
|
-
],
|
|
3037
|
-
const { language: t = "en", name: a = "", theme:
|
|
3038
|
-
e && (e.name =
|
|
3040
|
+
], s2 = (i, e = null) => {
|
|
3041
|
+
const { language: t = "en", name: a = "", theme: n } = e || {}, s = a || m.t("_common:proposal", { lng: t }).capitalize();
|
|
3042
|
+
e && (e.name = s);
|
|
3039
3043
|
const {
|
|
3040
3044
|
background: o,
|
|
3041
3045
|
priceSummaryBackground: l,
|
|
3042
3046
|
backgroundFilter: r
|
|
3043
|
-
} =
|
|
3047
|
+
} = n || {}, c = l || "hsl(228, 52%, 18%)", g = it.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
|
|
3044
3048
|
return [
|
|
3045
3049
|
{
|
|
3046
3050
|
key: `header-${i}`,
|
|
@@ -3049,7 +3053,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
3049
3053
|
layout: "vertical",
|
|
3050
3054
|
baseStyle: {
|
|
3051
3055
|
textAlign: "left",
|
|
3052
|
-
textColor:
|
|
3056
|
+
textColor: g
|
|
3053
3057
|
},
|
|
3054
3058
|
items: [
|
|
3055
3059
|
{
|
|
@@ -3071,8 +3075,8 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
3071
3075
|
},
|
|
3072
3076
|
value: {
|
|
3073
3077
|
preText: "",
|
|
3074
|
-
documentName: `<p data-typography="title">${
|
|
3075
|
-
postText:
|
|
3078
|
+
documentName: `<p data-typography="title">${s}</p>`,
|
|
3079
|
+
postText: m.t("components:document.chapters.header.postText", {
|
|
3076
3080
|
lng: t,
|
|
3077
3081
|
interpolation: { prefix: "__", suffix: "__" }
|
|
3078
3082
|
}),
|
|
@@ -3084,7 +3088,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
3084
3088
|
}
|
|
3085
3089
|
}
|
|
3086
3090
|
];
|
|
3087
|
-
},
|
|
3091
|
+
}, o2 = (i) => ({
|
|
3088
3092
|
[`data.header-${i}`]: {
|
|
3089
3093
|
layout: "vertical",
|
|
3090
3094
|
baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
|
|
@@ -3114,20 +3118,20 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
3114
3118
|
}
|
|
3115
3119
|
]
|
|
3116
3120
|
}
|
|
3117
|
-
}),
|
|
3121
|
+
}), l2 = ({
|
|
3118
3122
|
includeMockData: i = !1,
|
|
3119
3123
|
document: e = null,
|
|
3120
3124
|
contentData: t = null
|
|
3121
3125
|
}) => {
|
|
3122
3126
|
const a = p();
|
|
3123
|
-
let
|
|
3124
|
-
return typeof t == "function" ?
|
|
3125
|
-
readView:
|
|
3126
|
-
validation:
|
|
3127
|
-
...
|
|
3127
|
+
let n = null;
|
|
3128
|
+
return typeof t == "function" ? n = t(a) : i && (n = o2(a)), {
|
|
3129
|
+
readView: n2(a),
|
|
3130
|
+
validation: s2(a, e),
|
|
3131
|
+
...n && { data: n }
|
|
3128
3132
|
};
|
|
3129
|
-
},
|
|
3130
|
-
const e = (t) =>
|
|
3133
|
+
}, r2 = ({ language: i = "en" } = {}) => {
|
|
3134
|
+
const e = (t) => m.t(`components:account.documentForm.contentItems.header.${t}`, {
|
|
3131
3135
|
lng: i,
|
|
3132
3136
|
interpolation: { prefix: "__", suffix: "__" }
|
|
3133
3137
|
});
|
|
@@ -3416,7 +3420,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
3416
3420
|
})
|
|
3417
3421
|
}
|
|
3418
3422
|
];
|
|
3419
|
-
},
|
|
3423
|
+
}, c2 = () => {
|
|
3420
3424
|
const i = Array(2).fill().map(() => p());
|
|
3421
3425
|
return [
|
|
3422
3426
|
{
|
|
@@ -3439,22 +3443,22 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
3439
3443
|
// uniqid(),
|
|
3440
3444
|
}
|
|
3441
3445
|
];
|
|
3442
|
-
},
|
|
3446
|
+
}, d2 = (i = "en") => [
|
|
3443
3447
|
{
|
|
3444
3448
|
key: "multiGroupPricing-title",
|
|
3445
3449
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
3446
|
-
defaultValue:
|
|
3450
|
+
defaultValue: m.t(
|
|
3447
3451
|
"components:document.chapters.multiGroupPricing.title",
|
|
3448
3452
|
{ lng: i }
|
|
3449
3453
|
)
|
|
3450
3454
|
}
|
|
3451
|
-
],
|
|
3455
|
+
], p2 = ({ document: i = null }) => {
|
|
3452
3456
|
const { language: e } = i || {};
|
|
3453
3457
|
return {
|
|
3454
|
-
readView:
|
|
3455
|
-
validation:
|
|
3458
|
+
readView: c2(),
|
|
3459
|
+
validation: d2(e)
|
|
3456
3460
|
};
|
|
3457
|
-
},
|
|
3461
|
+
}, u2 = () => {
|
|
3458
3462
|
const i = Array(5).fill().map(() => p());
|
|
3459
3463
|
return [
|
|
3460
3464
|
{
|
|
@@ -3504,14 +3508,14 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
3504
3508
|
nodeId: i[4]
|
|
3505
3509
|
}
|
|
3506
3510
|
];
|
|
3507
|
-
},
|
|
3511
|
+
}, m2 = () => [
|
|
3508
3512
|
{ key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
|
|
3509
3513
|
{ key: "notBinding", type: "boolean" }
|
|
3510
|
-
],
|
|
3511
|
-
readView:
|
|
3512
|
-
validation:
|
|
3514
|
+
], h2 = () => ({
|
|
3515
|
+
readView: u2(),
|
|
3516
|
+
validation: m2()
|
|
3513
3517
|
});
|
|
3514
|
-
|
|
3518
|
+
m.loadOptions({
|
|
3515
3519
|
namespaces: "packageGroupTemplate",
|
|
3516
3520
|
messages: {
|
|
3517
3521
|
en: {
|
|
@@ -3522,7 +3526,7 @@ h.loadOptions({
|
|
|
3522
3526
|
}
|
|
3523
3527
|
}
|
|
3524
3528
|
});
|
|
3525
|
-
const
|
|
3529
|
+
const f2 = (i) => {
|
|
3526
3530
|
const e = Array(2).fill().map(() => p());
|
|
3527
3531
|
return [
|
|
3528
3532
|
{
|
|
@@ -3547,42 +3551,42 @@ const p2 = (i) => {
|
|
|
3547
3551
|
nodeId: e[1]
|
|
3548
3552
|
}
|
|
3549
3553
|
];
|
|
3550
|
-
},
|
|
3554
|
+
}, g2 = (i, e = "en") => [
|
|
3551
3555
|
{
|
|
3552
3556
|
key: `packageGroups.${i}`,
|
|
3553
3557
|
validationKey: "packageGroups",
|
|
3554
3558
|
defaultValue: {
|
|
3555
3559
|
type: "",
|
|
3556
|
-
title:
|
|
3560
|
+
title: m.t("packageGroupTemplate:title", { lng: e }),
|
|
3557
3561
|
hideGroupPrice: !1,
|
|
3558
3562
|
packages: []
|
|
3559
3563
|
},
|
|
3560
3564
|
defaultValidation: {
|
|
3561
3565
|
[i]: {
|
|
3562
3566
|
type: "",
|
|
3563
|
-
title:
|
|
3567
|
+
title: m.t("packageGroupTemplate:title", { lng: e }),
|
|
3564
3568
|
hideGroupPrice: !1,
|
|
3565
3569
|
packages: []
|
|
3566
3570
|
}
|
|
3567
3571
|
},
|
|
3568
3572
|
$ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
|
|
3569
3573
|
}
|
|
3570
|
-
],
|
|
3574
|
+
], C2 = () => null, v2 = ({
|
|
3571
3575
|
includeMockData: i,
|
|
3572
3576
|
document: e = null,
|
|
3573
3577
|
contentData: t = null
|
|
3574
3578
|
} = {}) => {
|
|
3575
|
-
const a = p(), { language:
|
|
3576
|
-
let
|
|
3577
|
-
typeof t == "function" ?
|
|
3578
|
-
const o =
|
|
3579
|
+
const a = p(), { language: n } = e || {};
|
|
3580
|
+
let s = null;
|
|
3581
|
+
typeof t == "function" ? s = t(a) : i && (s = C2());
|
|
3582
|
+
const o = f2(a), l = g2(a, n);
|
|
3579
3583
|
return {
|
|
3580
3584
|
readView: o,
|
|
3581
3585
|
validation: l,
|
|
3582
|
-
...
|
|
3586
|
+
...s && { data: s }
|
|
3583
3587
|
};
|
|
3584
3588
|
};
|
|
3585
|
-
|
|
3589
|
+
m.loadOptions({
|
|
3586
3590
|
namespaces: "packageGroupContentItems",
|
|
3587
3591
|
messages: {
|
|
3588
3592
|
en: {
|
|
@@ -3667,13 +3671,13 @@ h.loadOptions({
|
|
|
3667
3671
|
}
|
|
3668
3672
|
}
|
|
3669
3673
|
});
|
|
3670
|
-
const
|
|
3674
|
+
const y2 = ({
|
|
3671
3675
|
language: i = "en",
|
|
3672
3676
|
currency: e = "USD",
|
|
3673
3677
|
_getters: t,
|
|
3674
3678
|
allArticles: a = []
|
|
3675
3679
|
} = {}) => {
|
|
3676
|
-
const
|
|
3680
|
+
const n = u(t, "settings/defaultVatRate") || null, s = !u(t, "settings/hidePriceOnNewlyAddedArticles"), o = (l) => m.t(`packageGroupContentItems:${l}`, { lng: i });
|
|
3677
3681
|
return [
|
|
3678
3682
|
{
|
|
3679
3683
|
previewUrl: `
|
|
@@ -3722,7 +3726,7 @@ const f2 = ({
|
|
|
3722
3726
|
return {
|
|
3723
3727
|
[`data.packageGroups.${l}`]: {
|
|
3724
3728
|
type: "single",
|
|
3725
|
-
title:
|
|
3729
|
+
title: m.t("packageGroupTemplate:title", { lng: i }),
|
|
3726
3730
|
hideGroupPrice: !1,
|
|
3727
3731
|
packages: [
|
|
3728
3732
|
{
|
|
@@ -3740,9 +3744,9 @@ const f2 = ({
|
|
|
3740
3744
|
},
|
|
3741
3745
|
articles: [
|
|
3742
3746
|
...a,
|
|
3743
|
-
|
|
3744
|
-
vat:
|
|
3745
|
-
showPrice:
|
|
3747
|
+
x({
|
|
3748
|
+
vat: n,
|
|
3749
|
+
showPrice: s,
|
|
3746
3750
|
currency: e,
|
|
3747
3751
|
packageId: r,
|
|
3748
3752
|
name: o("single.art"),
|
|
@@ -3840,7 +3844,7 @@ const f2 = ({
|
|
|
3840
3844
|
return {
|
|
3841
3845
|
[`data.packageGroups.${l}`]: {
|
|
3842
3846
|
type: "radio",
|
|
3843
|
-
title:
|
|
3847
|
+
title: m.t("packageGroupTemplate:title", { lng: i }),
|
|
3844
3848
|
hideGroupPrice: !1,
|
|
3845
3849
|
packages: [
|
|
3846
3850
|
{
|
|
@@ -3869,17 +3873,17 @@ const f2 = ({
|
|
|
3869
3873
|
},
|
|
3870
3874
|
articles: [
|
|
3871
3875
|
...a,
|
|
3872
|
-
|
|
3873
|
-
vat:
|
|
3874
|
-
showPrice:
|
|
3876
|
+
x({
|
|
3877
|
+
vat: n,
|
|
3878
|
+
showPrice: s,
|
|
3875
3879
|
currency: e,
|
|
3876
3880
|
packageId: r[0],
|
|
3877
3881
|
name: o("radio.artA"),
|
|
3878
3882
|
price: 1e5
|
|
3879
3883
|
}),
|
|
3880
|
-
|
|
3881
|
-
vat:
|
|
3882
|
-
showPrice:
|
|
3884
|
+
x({
|
|
3885
|
+
vat: n,
|
|
3886
|
+
showPrice: s,
|
|
3883
3887
|
currency: e,
|
|
3884
3888
|
packageId: r[1],
|
|
3885
3889
|
name: o("radio.artB"),
|
|
@@ -3974,7 +3978,7 @@ const f2 = ({
|
|
|
3974
3978
|
return {
|
|
3975
3979
|
[`data.packageGroups.${l}`]: {
|
|
3976
3980
|
type: "checkbox",
|
|
3977
|
-
title:
|
|
3981
|
+
title: m.t("packageGroupTemplate:title", { lng: i }),
|
|
3978
3982
|
hideGroupPrice: !1,
|
|
3979
3983
|
packages: [
|
|
3980
3984
|
{
|
|
@@ -4003,17 +4007,17 @@ const f2 = ({
|
|
|
4003
4007
|
},
|
|
4004
4008
|
articles: [
|
|
4005
4009
|
...a,
|
|
4006
|
-
|
|
4007
|
-
vat:
|
|
4008
|
-
showPrice:
|
|
4010
|
+
x({
|
|
4011
|
+
vat: n,
|
|
4012
|
+
showPrice: s,
|
|
4009
4013
|
currency: e,
|
|
4010
4014
|
packageId: r[0],
|
|
4011
4015
|
name: o("checkbox.artBase"),
|
|
4012
4016
|
price: 1e5
|
|
4013
4017
|
}),
|
|
4014
|
-
|
|
4015
|
-
vat:
|
|
4016
|
-
showPrice:
|
|
4018
|
+
x({
|
|
4019
|
+
vat: n,
|
|
4020
|
+
showPrice: s,
|
|
4017
4021
|
currency: e,
|
|
4018
4022
|
packageId: r[1],
|
|
4019
4023
|
name: o("checkbox.artOption"),
|
|
@@ -4024,7 +4028,7 @@ const f2 = ({
|
|
|
4024
4028
|
}
|
|
4025
4029
|
}
|
|
4026
4030
|
];
|
|
4027
|
-
},
|
|
4031
|
+
}, x2 = () => [
|
|
4028
4032
|
{
|
|
4029
4033
|
itemId: "presentation",
|
|
4030
4034
|
itemType: "presentation",
|
|
@@ -4032,11 +4036,11 @@ const f2 = ({
|
|
|
4032
4036
|
parentId: "0",
|
|
4033
4037
|
nodeId: p()
|
|
4034
4038
|
}
|
|
4035
|
-
],
|
|
4036
|
-
readView:
|
|
4039
|
+
], w2 = () => ({
|
|
4040
|
+
readView: x2(),
|
|
4037
4041
|
validation: []
|
|
4038
4042
|
// all relevant data is either within base doc or company settings etc
|
|
4039
|
-
}),
|
|
4043
|
+
}), b2 = () => [
|
|
4040
4044
|
{
|
|
4041
4045
|
itemId: "terms",
|
|
4042
4046
|
itemType: "termsDisclaimer",
|
|
@@ -4054,7 +4058,7 @@ const f2 = ({
|
|
|
4054
4058
|
parentId: "0",
|
|
4055
4059
|
nodeId: p()
|
|
4056
4060
|
}
|
|
4057
|
-
],
|
|
4061
|
+
], k2 = () => [
|
|
4058
4062
|
{
|
|
4059
4063
|
key: "terms",
|
|
4060
4064
|
anyOf: [
|
|
@@ -4062,10 +4066,10 @@ const f2 = ({
|
|
|
4062
4066
|
{ type: "null" }
|
|
4063
4067
|
]
|
|
4064
4068
|
}
|
|
4065
|
-
],
|
|
4066
|
-
readView:
|
|
4067
|
-
validation:
|
|
4068
|
-
}),
|
|
4069
|
+
], _2 = () => ({
|
|
4070
|
+
readView: b2(),
|
|
4071
|
+
validation: k2()
|
|
4072
|
+
}), L2 = (i) => {
|
|
4069
4073
|
const e = Array(2).fill().map(() => p());
|
|
4070
4074
|
return [
|
|
4071
4075
|
{
|
|
@@ -4087,29 +4091,29 @@ const f2 = ({
|
|
|
4087
4091
|
nodeId: e[1]
|
|
4088
4092
|
}
|
|
4089
4093
|
];
|
|
4090
|
-
},
|
|
4094
|
+
}, $2 = (i) => [
|
|
4091
4095
|
{
|
|
4092
4096
|
key: `title-${i}`,
|
|
4093
4097
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
4094
4098
|
defaultValue: ""
|
|
4095
4099
|
},
|
|
4096
4100
|
{ key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
|
|
4097
|
-
],
|
|
4101
|
+
], S2 = (i) => ({
|
|
4098
4102
|
[`data.title-${i}`]: "My custom text",
|
|
4099
4103
|
[`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
|
-
}),
|
|
4104
|
+
}), T2 = ({
|
|
4101
4105
|
includeMockData: i = !1,
|
|
4102
4106
|
contentData: e = null
|
|
4103
4107
|
}) => {
|
|
4104
4108
|
const t = p();
|
|
4105
4109
|
let a = null;
|
|
4106
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
4107
|
-
readView:
|
|
4108
|
-
validation:
|
|
4110
|
+
return typeof e == "function" ? a = e(t) : i && (a = S2(t)), {
|
|
4111
|
+
readView: L2(t),
|
|
4112
|
+
validation: $2(t),
|
|
4109
4113
|
...a && { data: a },
|
|
4110
4114
|
onAddFnName: "conditionalOnAdd"
|
|
4111
4115
|
};
|
|
4112
|
-
},
|
|
4116
|
+
}, D2 = (i) => [
|
|
4113
4117
|
{
|
|
4114
4118
|
itemId: "videoPlayer",
|
|
4115
4119
|
itemType: "videoPlayer",
|
|
@@ -4122,7 +4126,7 @@ const f2 = ({
|
|
|
4122
4126
|
parentId: "0",
|
|
4123
4127
|
nodeId: p()
|
|
4124
4128
|
}
|
|
4125
|
-
],
|
|
4129
|
+
], V2 = (i) => [
|
|
4126
4130
|
{
|
|
4127
4131
|
key: `video-${i}`,
|
|
4128
4132
|
$ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
|
|
@@ -4133,7 +4137,7 @@ const f2 = ({
|
|
|
4133
4137
|
}
|
|
4134
4138
|
}
|
|
4135
4139
|
}
|
|
4136
|
-
],
|
|
4140
|
+
], B2 = (i) => ({
|
|
4137
4141
|
[`data.video-${i}`]: {
|
|
4138
4142
|
size: "small",
|
|
4139
4143
|
video: {
|
|
@@ -4142,18 +4146,18 @@ const f2 = ({
|
|
|
4142
4146
|
id: "166JEb6qkr4"
|
|
4143
4147
|
}
|
|
4144
4148
|
}
|
|
4145
|
-
}),
|
|
4149
|
+
}), M2 = ({
|
|
4146
4150
|
includeMockData: i = !1,
|
|
4147
4151
|
contentData: e = null
|
|
4148
4152
|
}) => {
|
|
4149
4153
|
const t = p();
|
|
4150
4154
|
let a = null;
|
|
4151
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
4152
|
-
readView:
|
|
4153
|
-
validation:
|
|
4155
|
+
return typeof e == "function" ? a = e(t) : i && (a = B2(t)), {
|
|
4156
|
+
readView: D2(t),
|
|
4157
|
+
validation: V2(t),
|
|
4154
4158
|
...a && { data: a }
|
|
4155
4159
|
};
|
|
4156
|
-
},
|
|
4160
|
+
}, I2 = ({ language: i = "en" } = {}) => [
|
|
4157
4161
|
{
|
|
4158
4162
|
previewUrl: `
|
|
4159
4163
|
<div style="position: relative;">
|
|
@@ -4177,7 +4181,7 @@ const f2 = ({
|
|
|
4177
4181
|
</g>
|
|
4178
4182
|
</svg>
|
|
4179
4183
|
<div class="submenu-item-badge">
|
|
4180
|
-
${
|
|
4184
|
+
${m.t("_common:video", { language: i }).capitalize()}
|
|
4181
4185
|
</div>
|
|
4182
4186
|
</div>
|
|
4183
4187
|
`,
|
|
@@ -4354,35 +4358,35 @@ const f2 = ({
|
|
|
4354
4358
|
}
|
|
4355
4359
|
})
|
|
4356
4360
|
}
|
|
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:
|
|
4361
|
+
], O = {
|
|
4362
|
+
titleAndText2: T2,
|
|
4363
|
+
attachments2: V1,
|
|
4364
|
+
pdf: ue,
|
|
4365
|
+
packageGroup: v2,
|
|
4366
|
+
multiGroupPricing: p2,
|
|
4367
|
+
coverBlock: F1,
|
|
4368
|
+
videoPlayer: M2,
|
|
4369
|
+
embed: R1,
|
|
4370
|
+
header: l2,
|
|
4371
|
+
answer: me,
|
|
4372
|
+
terms: _2,
|
|
4373
|
+
parties: z1,
|
|
4374
|
+
custom: he,
|
|
4371
4375
|
// 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
|
-
},
|
|
4376
|
+
presentation: w2,
|
|
4377
|
+
estimatedTimeCompleted: j1,
|
|
4378
|
+
estimatedWorkStartAndEndAtText: Q1,
|
|
4379
|
+
extraWorkConstructionPricingList: e2,
|
|
4380
|
+
extraWorkTimeImpactText: a2,
|
|
4381
|
+
notBinding: h2
|
|
4382
|
+
}, U = {
|
|
4383
|
+
coverBlock: H1,
|
|
4384
|
+
header: r2,
|
|
4385
|
+
packageGroup: y2,
|
|
4386
|
+
embed: G1,
|
|
4387
|
+
videoPlayer: I2,
|
|
4388
|
+
custom: pe
|
|
4389
|
+
}, F2 = {
|
|
4386
4390
|
name: "AddBlock",
|
|
4387
4391
|
props: {
|
|
4388
4392
|
set: {
|
|
@@ -4396,31 +4400,31 @@ const f2 = ({
|
|
|
4396
4400
|
},
|
|
4397
4401
|
render() {
|
|
4398
4402
|
return this.$scopedSlots.default({
|
|
4399
|
-
addBlock: (i) =>
|
|
4403
|
+
addBlock: (i) => fe({
|
|
4400
4404
|
...i,
|
|
4401
4405
|
set: this.set,
|
|
4402
|
-
tplGenerators:
|
|
4406
|
+
tplGenerators: O,
|
|
4403
4407
|
includeMockData: this.includeMockData,
|
|
4404
4408
|
emit: (...e) => this.$emit(...e)
|
|
4405
4409
|
}),
|
|
4406
|
-
getBlockPayload: (i) =>
|
|
4410
|
+
getBlockPayload: (i) => ge(
|
|
4407
4411
|
i,
|
|
4408
4412
|
this.set,
|
|
4409
|
-
|
|
4413
|
+
O,
|
|
4410
4414
|
this.includeMockdata
|
|
4411
4415
|
)
|
|
4412
4416
|
});
|
|
4413
4417
|
}
|
|
4414
|
-
},
|
|
4415
|
-
var
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4418
|
+
}, H2 = null, A2 = null;
|
|
4419
|
+
var P2 = /* @__PURE__ */ d(
|
|
4420
|
+
F2,
|
|
4421
|
+
H2,
|
|
4422
|
+
A2,
|
|
4419
4423
|
!1,
|
|
4420
4424
|
null,
|
|
4421
4425
|
null
|
|
4422
4426
|
);
|
|
4423
|
-
const
|
|
4427
|
+
const X = P2.exports, E2 = {
|
|
4424
4428
|
name: "MenuBlockConvertPopover",
|
|
4425
4429
|
props: {
|
|
4426
4430
|
target: {
|
|
@@ -4446,29 +4450,29 @@ const Q = I2.exports, F2 = {
|
|
|
4446
4450
|
immediate: !0,
|
|
4447
4451
|
handler(i) {
|
|
4448
4452
|
i && this.$nextTick(() => {
|
|
4449
|
-
const { top: e, left: t, width: a, height:
|
|
4450
|
-
this.$refs.popover.style.top = `${e +
|
|
4453
|
+
const { top: e, left: t, width: a, height: n } = i.getBoundingClientRect();
|
|
4454
|
+
this.$refs.popover.style.top = `${e + n}px`, this.$refs.popover.style.left = `${t + a + 10}px`;
|
|
4451
4455
|
});
|
|
4452
4456
|
}
|
|
4453
4457
|
}
|
|
4454
4458
|
}
|
|
4455
4459
|
};
|
|
4456
|
-
var
|
|
4460
|
+
var z2 = function() {
|
|
4457
4461
|
var e = this, t = e._self._c;
|
|
4458
4462
|
return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
|
|
4459
4463
|
return a.target !== a.currentTarget ? null : e.$emit("close");
|
|
4460
4464
|
} } }), 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
4465
|
return e.$emit("convert");
|
|
4462
4466
|
} } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
|
|
4463
|
-
},
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
+
}, Z2 = [], O2 = /* @__PURE__ */ d(
|
|
4468
|
+
E2,
|
|
4469
|
+
z2,
|
|
4470
|
+
Z2,
|
|
4467
4471
|
!1,
|
|
4468
4472
|
null,
|
|
4469
4473
|
null
|
|
4470
4474
|
);
|
|
4471
|
-
const
|
|
4475
|
+
const U2 = O2.exports, R2 = E.component("ProBadge", {
|
|
4472
4476
|
name: "ProBadge",
|
|
4473
4477
|
render(i) {
|
|
4474
4478
|
return i(
|
|
@@ -4479,7 +4483,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
|
|
|
4479
4483
|
"Pro"
|
|
4480
4484
|
);
|
|
4481
4485
|
}
|
|
4482
|
-
}),
|
|
4486
|
+
}), G2 = {
|
|
4483
4487
|
name: "MenuBlocks",
|
|
4484
4488
|
i18nOptions: {
|
|
4485
4489
|
namespaces: "menuBlocks",
|
|
@@ -4549,15 +4553,15 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
|
|
|
4549
4553
|
}
|
|
4550
4554
|
},
|
|
4551
4555
|
components: {
|
|
4552
|
-
simplebar:
|
|
4553
|
-
DragList:
|
|
4554
|
-
DragItem:
|
|
4555
|
-
AddBlock:
|
|
4556
|
-
IsPremiumPreStep:
|
|
4557
|
-
ProBadge:
|
|
4558
|
-
MenuBlockConvertPopover:
|
|
4559
|
-
},
|
|
4560
|
-
mixins: [
|
|
4556
|
+
simplebar: _,
|
|
4557
|
+
DragList: G,
|
|
4558
|
+
DragItem: W,
|
|
4559
|
+
AddBlock: X,
|
|
4560
|
+
IsPremiumPreStep: L,
|
|
4561
|
+
ProBadge: R2,
|
|
4562
|
+
MenuBlockConvertPopover: U2
|
|
4563
|
+
},
|
|
4564
|
+
mixins: [w],
|
|
4561
4565
|
inject: {
|
|
4562
4566
|
viewSettings: {
|
|
4563
4567
|
default: () => ({ isPublicForm: !1 })
|
|
@@ -4744,7 +4748,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
|
|
|
4744
4748
|
};
|
|
4745
4749
|
},
|
|
4746
4750
|
computed: {
|
|
4747
|
-
...
|
|
4751
|
+
...C({
|
|
4748
4752
|
allAuthenticatedCRMs: "settings/allAuthenticatedCRMs",
|
|
4749
4753
|
feature: "application/feature"
|
|
4750
4754
|
}),
|
|
@@ -4860,7 +4864,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
|
|
|
4860
4864
|
}
|
|
4861
4865
|
];
|
|
4862
4866
|
return i.forEach((e) => {
|
|
4863
|
-
|
|
4867
|
+
U[e.key] && (e.subMenu = (U[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
|
|
4864
4868
|
}), i;
|
|
4865
4869
|
},
|
|
4866
4870
|
availableBlocks() {
|
|
@@ -4899,7 +4903,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
|
|
|
4899
4903
|
if (i.locked)
|
|
4900
4904
|
return t();
|
|
4901
4905
|
if (!this.canUseBlocks) {
|
|
4902
|
-
const a = this.availableBlocks.findIndex((
|
|
4906
|
+
const a = this.availableBlocks.findIndex((n) => n.key === i.key);
|
|
4903
4907
|
return this.showConvertEditableDialogTarget = this.$refs.blockItem[a].$el, this.showConvertEditableDialog = !0, !1;
|
|
4904
4908
|
}
|
|
4905
4909
|
return e({
|
|
@@ -4912,11 +4916,11 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
|
|
|
4912
4916
|
["_id", "id"].forEach((i) => this.removeValue(`template.${i}`)), this.set({ key: "template.views.read.isEditable", value: !0 }), this.showConvertEditableDialog = !1;
|
|
4913
4917
|
},
|
|
4914
4918
|
createTooltips() {
|
|
4915
|
-
var
|
|
4919
|
+
var n, s;
|
|
4916
4920
|
if (this.mq === "sm")
|
|
4917
4921
|
return;
|
|
4918
|
-
const { tooltips: i } = this, e = (
|
|
4919
|
-
this.tippyInstances =
|
|
4922
|
+
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;
|
|
4923
|
+
this.tippyInstances = je(this.$el, {
|
|
4920
4924
|
target: "[data-tooltip-key]",
|
|
4921
4925
|
allowHTML: !0,
|
|
4922
4926
|
duration: [150, 0],
|
|
@@ -4941,7 +4945,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
|
|
|
4941
4945
|
i.destroy();
|
|
4942
4946
|
}) : this.tippyInstances.destroy && this.tippyInstances.destroy());
|
|
4943
4947
|
},
|
|
4944
|
-
setSubMenuState:
|
|
4948
|
+
setSubMenuState: z(
|
|
4945
4949
|
function(e) {
|
|
4946
4950
|
this.activeSubMenu = e;
|
|
4947
4951
|
},
|
|
@@ -4984,12 +4988,12 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
|
|
|
4984
4988
|
}
|
|
4985
4989
|
}
|
|
4986
4990
|
};
|
|
4987
|
-
var
|
|
4991
|
+
var W2 = function() {
|
|
4988
4992
|
var e = this, t = e._self._c;
|
|
4989
4993
|
return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
|
|
4990
4994
|
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:
|
|
4995
|
+
} }, scopedSlots: e._u([{ key: "default", fn: function({ addBlock: a, getBlockPayload: n }) {
|
|
4996
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "documentBlocks" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
4993
4997
|
return [t("div", { on: { "&mouseleave": function(o) {
|
|
4994
4998
|
return e.onMouseleaveDrawer.apply(null, arguments);
|
|
4995
4999
|
} } }, [!e.canUseBlocks && e.showConvertEditableDialog ? t("MenuBlockConvertPopover", { attrs: { target: e.showConvertEditableDialogTarget }, on: { convert: e.deSyncTemplate, close: function(o) {
|
|
@@ -4998,7 +5002,7 @@ var U2 = function() {
|
|
|
4998
5002
|
{ data: e.primaryBlocks },
|
|
4999
5003
|
{ data: e.secondaryBlocks }
|
|
5000
5004
|
], 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) =>
|
|
5005
|
+
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
5006
|
e.getSectionKey({ data: o.data, index: r })
|
|
5003
5007
|
), "drop-placeholder": {
|
|
5004
5008
|
className: "drag-drop-menu-placeholder"
|
|
@@ -5016,26 +5020,26 @@ var U2 = function() {
|
|
|
5016
5020
|
!1
|
|
5017
5021
|
), [t("CButton", { ref: "blockItem", refInFor: !0, staticClass: "option-row is-thinner is-left", class: {
|
|
5018
5022
|
"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:
|
|
5023
|
+
}, 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
5024
|
}), 1)], 1);
|
|
5021
5025
|
}), 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
5026
|
e.subMenuToShow = e.activeSubMenu;
|
|
5023
5027
|
}, "&mouseleave": function(o) {
|
|
5024
5028
|
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:
|
|
5029
|
+
} } }, [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) {
|
|
5030
|
+
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
5031
|
}), 1)], 1)], 1)])], 1)];
|
|
5028
5032
|
} }], null, !0) })];
|
|
5029
5033
|
} }]) });
|
|
5030
|
-
},
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
+
}, q2 = [], N2 = /* @__PURE__ */ d(
|
|
5035
|
+
G2,
|
|
5036
|
+
W2,
|
|
5037
|
+
q2,
|
|
5034
5038
|
!1,
|
|
5035
5039
|
null,
|
|
5036
5040
|
"6dba95f7"
|
|
5037
5041
|
);
|
|
5038
|
-
const
|
|
5042
|
+
const j2 = N2.exports, K2 = {
|
|
5039
5043
|
name: "DocumentFormMenu",
|
|
5040
5044
|
i18nOptions: {
|
|
5041
5045
|
namespaces: "documentFormMenu",
|
|
@@ -5051,13 +5055,13 @@ const G2 = R2.exports, W2 = {
|
|
|
5051
5055
|
}
|
|
5052
5056
|
},
|
|
5053
5057
|
components: {
|
|
5054
|
-
Design:
|
|
5055
|
-
Fields:
|
|
5056
|
-
ExtensionTab:
|
|
5057
|
-
DocumentGeneralSettings:
|
|
5058
|
-
DocumentGuide: () => import("./index-
|
|
5059
|
-
MenuBlocks:
|
|
5060
|
-
Simplebar:
|
|
5058
|
+
Design: l1,
|
|
5059
|
+
Fields: S1,
|
|
5060
|
+
ExtensionTab: C1,
|
|
5061
|
+
DocumentGeneralSettings: u1,
|
|
5062
|
+
DocumentGuide: () => import("./index-CFe1BJZJ.js"),
|
|
5063
|
+
MenuBlocks: j2,
|
|
5064
|
+
Simplebar: _
|
|
5061
5065
|
},
|
|
5062
5066
|
props: {
|
|
5063
5067
|
state: {
|
|
@@ -5097,12 +5101,12 @@ const G2 = R2.exports, W2 = {
|
|
|
5097
5101
|
data() {
|
|
5098
5102
|
return {
|
|
5099
5103
|
showGuide: !1,
|
|
5100
|
-
showGuideNotification: !
|
|
5104
|
+
showGuideNotification: !Z.getItem("hideFormGuideNotification"),
|
|
5101
5105
|
tab: "blocks"
|
|
5102
5106
|
};
|
|
5103
5107
|
},
|
|
5104
5108
|
computed: {
|
|
5105
|
-
...
|
|
5109
|
+
...C({
|
|
5106
5110
|
allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
|
|
5107
5111
|
}),
|
|
5108
5112
|
extensionTabType() {
|
|
@@ -5119,11 +5123,11 @@ const G2 = R2.exports, W2 = {
|
|
|
5119
5123
|
},
|
|
5120
5124
|
methods: {
|
|
5121
5125
|
openGuide() {
|
|
5122
|
-
this.showGuide = !0, this.showGuideNotification = !1,
|
|
5126
|
+
this.showGuide = !0, this.showGuideNotification = !1, Z.setItem("hideFormGuideNotification", !0);
|
|
5123
5127
|
}
|
|
5124
5128
|
}
|
|
5125
5129
|
};
|
|
5126
|
-
var
|
|
5130
|
+
var Y2 = function() {
|
|
5127
5131
|
var e = this, t = e._self._c;
|
|
5128
5132
|
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
5133
|
return e.$emit("close");
|
|
@@ -5149,7 +5153,9 @@ var q2 = function() {
|
|
|
5149
5153
|
e.tab = "generalSettings";
|
|
5150
5154
|
} } }, [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
5155
|
e.onAddedBlock(a), e.fixed && e.$emit("close");
|
|
5152
|
-
} }
|
|
5156
|
+
} }, scopedSlots: e._u([{ key: "footer", fn: function() {
|
|
5157
|
+
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)];
|
|
5158
|
+
}, 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
5159
|
css: "data.css"
|
|
5154
5160
|
}, set: e.set, offset: e.fixed ? 0 : e.width } }) : e.tab === "fields" ? t("Fields", { attrs: { _document: e.state, "crm-service": e.extensionTabType, _value: {
|
|
5155
5161
|
css: "data.css"
|
|
@@ -5157,7 +5163,7 @@ var q2 = function() {
|
|
|
5157
5163
|
externalReferences: "externalReferences",
|
|
5158
5164
|
clients: "clients",
|
|
5159
5165
|
articles: "articles"
|
|
5160
|
-
} }, on: { input: ({ key: a, value:
|
|
5166
|
+
} }, 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
5167
|
term: "data.terms",
|
|
5162
5168
|
series: "docNumber.series",
|
|
5163
5169
|
tags: "tags",
|
|
@@ -5167,24 +5173,24 @@ var q2 = function() {
|
|
|
5167
5173
|
useVat: "data.formSettings.useVat",
|
|
5168
5174
|
vatType: "data.formSettings.vatType",
|
|
5169
5175
|
rounding: "data.formSettings.rounding"
|
|
5170
|
-
}, offset: e.fixed ? 0 : e.width }, on: { input: ({ key: a, value:
|
|
5176
|
+
}, 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
5177
|
e.showGuide = !1;
|
|
5172
5178
|
} } }) : e._e()], 1)])]);
|
|
5173
|
-
},
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5179
|
+
}, Q2 = [], J2 = /* @__PURE__ */ d(
|
|
5180
|
+
K2,
|
|
5181
|
+
Y2,
|
|
5182
|
+
Q2,
|
|
5177
5183
|
!1,
|
|
5178
5184
|
null,
|
|
5179
|
-
"
|
|
5185
|
+
"aec59ec8"
|
|
5180
5186
|
);
|
|
5181
|
-
const
|
|
5187
|
+
const X2 = J2.exports, ee = (i, e, t = "$children") => {
|
|
5182
5188
|
if (!i)
|
|
5183
5189
|
return;
|
|
5184
5190
|
e(i);
|
|
5185
5191
|
const a = i[t];
|
|
5186
|
-
!a && !Array.isArray(a) || a.forEach((
|
|
5187
|
-
},
|
|
5192
|
+
!a && !Array.isArray(a) || a.forEach((n) => ee(n, e));
|
|
5193
|
+
}, ei = {
|
|
5188
5194
|
i18nOptions: {
|
|
5189
5195
|
namespaces: "DocumentFormContainer",
|
|
5190
5196
|
messages: {
|
|
@@ -5200,21 +5206,21 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5200
5206
|
},
|
|
5201
5207
|
name: "DocumentFormContainer",
|
|
5202
5208
|
components: {
|
|
5203
|
-
WithDimensions:
|
|
5204
|
-
DragList:
|
|
5205
|
-
DragItem:
|
|
5206
|
-
DynamicChapter:
|
|
5207
|
-
DocumentFormMenu:
|
|
5208
|
-
DynamicBlock:
|
|
5209
|
-
DocumentFormViewRadio:
|
|
5210
|
-
DocumentFormNav:
|
|
5211
|
-
DocumentDrawer:
|
|
5212
|
-
DocumentStyleContainer:
|
|
5213
|
-
simplebar:
|
|
5214
|
-
LogoBanner:
|
|
5215
|
-
IsPremium:
|
|
5216
|
-
},
|
|
5217
|
-
mixins: [
|
|
5209
|
+
WithDimensions: Ge,
|
|
5210
|
+
DragList: G,
|
|
5211
|
+
DragItem: W,
|
|
5212
|
+
DynamicChapter: We,
|
|
5213
|
+
DocumentFormMenu: X2,
|
|
5214
|
+
DynamicBlock: Ot,
|
|
5215
|
+
DocumentFormViewRadio: Bt,
|
|
5216
|
+
DocumentFormNav: $t,
|
|
5217
|
+
DocumentDrawer: wt,
|
|
5218
|
+
DocumentStyleContainer: qe,
|
|
5219
|
+
simplebar: _,
|
|
5220
|
+
LogoBanner: qt,
|
|
5221
|
+
IsPremium: $
|
|
5222
|
+
},
|
|
5223
|
+
mixins: [w],
|
|
5218
5224
|
props: {
|
|
5219
5225
|
_document: {
|
|
5220
5226
|
type: Object,
|
|
@@ -5316,29 +5322,29 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5316
5322
|
var e, t;
|
|
5317
5323
|
i && (Object.keys(((t = (e = this._document._doc) == null ? void 0 : e.data) == null ? void 0 : t.packageGroups) || []).forEach(
|
|
5318
5324
|
(a) => {
|
|
5319
|
-
this._document._doc.data.packageGroups[a].packages.forEach((
|
|
5325
|
+
this._document._doc.data.packageGroups[a].packages.forEach((s, o) => {
|
|
5320
5326
|
this.setFormValue({
|
|
5321
5327
|
key: `data.packageGroups.${a}.packages[${o}].data.prices.currency`,
|
|
5322
5328
|
value: i
|
|
5323
5329
|
});
|
|
5324
5330
|
});
|
|
5325
5331
|
}
|
|
5326
|
-
), this._document.allArticles.forEach((a,
|
|
5327
|
-
const
|
|
5328
|
-
this.setFormValue({ key:
|
|
5332
|
+
), this._document.allArticles.forEach((a, n) => {
|
|
5333
|
+
const s = `articles[${n}].currency`;
|
|
5334
|
+
this.setFormValue({ key: s, value: i });
|
|
5329
5335
|
}));
|
|
5330
5336
|
},
|
|
5331
5337
|
async externalReferences(i) {
|
|
5332
5338
|
await Promise.all(
|
|
5333
5339
|
(i || []).map(async ({ service: e, type: t, typeId: a }) => {
|
|
5334
5340
|
if (t && a && e && this.$store.getters["settings/isAuthenticatedCRM"](e)) {
|
|
5335
|
-
const { data:
|
|
5341
|
+
const { data: n } = await T.getFields(
|
|
5336
5342
|
e,
|
|
5337
5343
|
{ type: t, typeId: a, populated: !0 }
|
|
5338
5344
|
);
|
|
5339
5345
|
this.setFormValue({
|
|
5340
5346
|
key: "data.fields",
|
|
5341
|
-
value: { ...this._document.fields, ...
|
|
5347
|
+
value: { ...this._document.fields, ...n }
|
|
5342
5348
|
});
|
|
5343
5349
|
}
|
|
5344
5350
|
})
|
|
@@ -5347,11 +5353,11 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5347
5353
|
},
|
|
5348
5354
|
methods: {
|
|
5349
5355
|
onAddBlockMount(i, e) {
|
|
5350
|
-
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() =>
|
|
5356
|
+
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => at(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
|
|
5351
5357
|
},
|
|
5352
5358
|
onBlockToggleVisible(i, e) {
|
|
5353
5359
|
const a = [...this.readLayout].findIndex(
|
|
5354
|
-
(
|
|
5360
|
+
(n) => n.nodeId === i.nodeId
|
|
5355
5361
|
);
|
|
5356
5362
|
a !== -1 && this.setFormValue({
|
|
5357
5363
|
key: `template.views.read.nodes[${a}].isVisible`,
|
|
@@ -5371,10 +5377,10 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5371
5377
|
const a = i.itemId.split("-")[1];
|
|
5372
5378
|
this.removePackageGroup(a);
|
|
5373
5379
|
} else
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
this.removeFormKeyValue(`${
|
|
5377
|
-
let o =
|
|
5380
|
+
ee(i, (n) => {
|
|
5381
|
+
n.value && Object.values(n.value).forEach((s) => {
|
|
5382
|
+
this.removeFormKeyValue(`${s}`);
|
|
5383
|
+
let o = s.replace(
|
|
5378
5384
|
/^data.(?!properties)/g,
|
|
5379
5385
|
"data.properties."
|
|
5380
5386
|
);
|
|
@@ -5384,9 +5390,9 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5384
5390
|
this.removeFormKeyValue(r);
|
|
5385
5391
|
});
|
|
5386
5392
|
}, "children");
|
|
5387
|
-
|
|
5388
|
-
const
|
|
5389
|
-
this.removeFormValue(`template.views.read.nodes[${
|
|
5393
|
+
I([this.nestedReadLayout[e]]).forEach((a) => {
|
|
5394
|
+
const n = this.readLayout.findIndex((s) => s.nodeId === a.nodeId);
|
|
5395
|
+
this.removeFormValue(`template.views.read.nodes[${n}]`);
|
|
5390
5396
|
});
|
|
5391
5397
|
},
|
|
5392
5398
|
removePackageGroup(i) {
|
|
@@ -5395,7 +5401,7 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5395
5401
|
this.setFormValue({
|
|
5396
5402
|
key: "articles",
|
|
5397
5403
|
value: u(this._document, "_doc.articles", []).filter(
|
|
5398
|
-
({ packageId:
|
|
5404
|
+
({ packageId: n }) => n !== a.packageId
|
|
5399
5405
|
)
|
|
5400
5406
|
});
|
|
5401
5407
|
});
|
|
@@ -5411,38 +5417,38 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5411
5417
|
if (e !== null && t !== null) {
|
|
5412
5418
|
if (e === t)
|
|
5413
5419
|
return;
|
|
5414
|
-
const
|
|
5420
|
+
const n = Ce(
|
|
5415
5421
|
this.nestedReadLayout,
|
|
5416
5422
|
e,
|
|
5417
5423
|
t
|
|
5418
5424
|
);
|
|
5419
5425
|
this.setFormValue({
|
|
5420
5426
|
key: "template.views.read.nodes",
|
|
5421
|
-
value:
|
|
5427
|
+
value: I(n)
|
|
5422
5428
|
});
|
|
5423
5429
|
} else if (!e && t !== null) {
|
|
5424
|
-
const { sectionKey:
|
|
5430
|
+
const { sectionKey: n, createNewSection: s, addValidation: o, contentData: l } = a, {
|
|
5425
5431
|
readView: r,
|
|
5426
5432
|
validation: c,
|
|
5427
|
-
data:
|
|
5428
|
-
onAddFnName:
|
|
5429
|
-
} =
|
|
5430
|
-
sectionKey:
|
|
5433
|
+
data: g,
|
|
5434
|
+
onAddFnName: S = "onAdd"
|
|
5435
|
+
} = s({
|
|
5436
|
+
sectionKey: n,
|
|
5431
5437
|
document: this._document,
|
|
5432
5438
|
contentData: l
|
|
5433
5439
|
});
|
|
5434
|
-
o({ validation: c, data:
|
|
5435
|
-
const
|
|
5440
|
+
o({ validation: c, data: g });
|
|
5441
|
+
const M = ve({ tree: r }), ae = [
|
|
5436
5442
|
...this.nestedReadLayout.slice(0, t),
|
|
5437
|
-
...
|
|
5443
|
+
...M,
|
|
5438
5444
|
...this.nestedReadLayout.slice(t)
|
|
5439
5445
|
];
|
|
5440
5446
|
this.setFormValue({
|
|
5441
5447
|
key: "template.views.read.nodes",
|
|
5442
|
-
value:
|
|
5448
|
+
value: I(ae)
|
|
5443
5449
|
});
|
|
5444
|
-
const [{ nodeId:
|
|
5445
|
-
this.onAddRedis[
|
|
5450
|
+
const [{ nodeId: ne }] = r;
|
|
5451
|
+
this.onAddRedis[ne] = S;
|
|
5446
5452
|
}
|
|
5447
5453
|
},
|
|
5448
5454
|
shouldAnimateDrop(i) {
|
|
@@ -5450,25 +5456,31 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5450
5456
|
}
|
|
5451
5457
|
}
|
|
5452
5458
|
};
|
|
5453
|
-
var
|
|
5459
|
+
var ti = function() {
|
|
5454
5460
|
var e = this, t = e._self._c;
|
|
5455
5461
|
return t("div", { staticClass: "h-screen overflow-auto" }, [t("div", { staticClass: "relative flex min-h-screen flex-row bg-gray-200", class: {
|
|
5456
5462
|
"is-edit-view": e.isEditView,
|
|
5457
5463
|
"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
|
-
|
|
5464
|
+
} }, [t("DocumentFormNav", { attrs: { close: e.close }, scopedSlots: e._u([{ key: "left", fn: function() {
|
|
5465
|
+
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) {
|
|
5466
|
+
return a.stopPropagation(), e.drawerState.toggleLeft.apply(null, arguments);
|
|
5467
|
+
} } })], 1), e._t("nav-left")], 2)];
|
|
5468
|
+
}, proxy: !0 }, { key: "center", fn: function() {
|
|
5469
|
+
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) {
|
|
5470
|
+
return e.$emit("update:view", a);
|
|
5471
|
+
} } }), !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) {
|
|
5472
|
+
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 && {
|
|
5473
|
+
boxShadow: "0 1px 1px rgba(0, 0, 0, 0.2)",
|
|
5474
|
+
backgroundColor: "hsl(0, 0%, 100%)",
|
|
5475
|
+
color: "hsl(0, 0%, 7%)"
|
|
5476
|
+
}, on: { click: function(n) {
|
|
5477
|
+
e.previewDevice = a;
|
|
5478
|
+
} } }, [t("CIcon", { attrs: { type: a, size: "16" } })], 1);
|
|
5479
|
+
}), 0) : e._e()], 1)];
|
|
5480
|
+
}, proxy: !0 }, { key: "right", fn: function() {
|
|
5481
|
+
return [e._t("nav-right")];
|
|
5482
|
+
}, 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" }) => {
|
|
5483
|
+
e.onAddRedis[a] = n;
|
|
5472
5484
|
}, 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
5485
|
e.drawerState.showLeft = !1;
|
|
5474
5486
|
} } }), t("div", { ref: "scroll-body", staticClass: "doc-scroll-container flex w-full justify-center", class: {
|
|
@@ -5484,12 +5496,12 @@ var Q2 = function() {
|
|
|
5484
5496
|
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
5497
|
] }, [!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
5498
|
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: {
|
|
5499
|
+
} }, scopedSlots: e._u([{ key: "default", fn: function({ width: a, height: n }) {
|
|
5500
|
+
var s, o;
|
|
5501
|
+
return [t("DocumentStyleContainer", { staticClass: "relative h-full w-full", style: {
|
|
5490
5502
|
"--vw": `${a / 100}px`,
|
|
5491
|
-
"--vh": `clamp(7.5px, ${
|
|
5492
|
-
}, attrs: { "heading-color": e.headingColor, "input-style": ((o = (
|
|
5503
|
+
"--vh": `clamp(7.5px, ${n / 100}px, ${e.isEditView ? 7.5 : 9}px)`
|
|
5504
|
+
}, 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
5505
|
e.isDragging = !0;
|
|
5494
5506
|
}, "drag-end": function(l) {
|
|
5495
5507
|
e.isDragging = !1;
|
|
@@ -5514,27 +5526,27 @@ var Q2 = function() {
|
|
|
5514
5526
|
...l.props,
|
|
5515
5527
|
_document: e._document,
|
|
5516
5528
|
_value: l.value
|
|
5517
|
-
}, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: c, value:
|
|
5529
|
+
}, 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
5530
|
}), 1) : e._e(), e.canShowBanner ? t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ isProLike: l }) {
|
|
5519
5531
|
return [!e.isEditView && !l ? t("LogoBanner", { attrs: { position: "sticky" } }) : e._e()];
|
|
5520
|
-
} }], null, !0) }) : e._e()], 1);
|
|
5532
|
+
} }], null, !0) }) : e._e()], 1)];
|
|
5521
5533
|
} }]) })], 1)], 1)]), t("DocumentDrawer", { key: "settingsDrawer", attrs: { id: "settingsDrawer", open: !!e.drawerState.openSection, fixed: !0, position: "right" }, on: { "update:open": function(a) {
|
|
5522
5534
|
e.drawerState.openSection = null;
|
|
5523
5535
|
} } }, [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
5536
|
e.drawerState.openSection = null;
|
|
5525
5537
|
} } }), t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
|
|
5526
|
-
},
|
|
5538
|
+
}, ii = [function() {
|
|
5527
5539
|
var i = this, e = i._self._c;
|
|
5528
5540
|
return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
|
|
5529
|
-
}],
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5541
|
+
}], ai = /* @__PURE__ */ d(
|
|
5542
|
+
ei,
|
|
5543
|
+
ti,
|
|
5544
|
+
ii,
|
|
5533
5545
|
!1,
|
|
5534
5546
|
null,
|
|
5535
|
-
"
|
|
5547
|
+
"3db19ed2"
|
|
5536
5548
|
);
|
|
5537
|
-
const
|
|
5549
|
+
const ni = ai.exports, si = {
|
|
5538
5550
|
name: "DocumentSend",
|
|
5539
5551
|
i18nOptions: {
|
|
5540
5552
|
namespaces: "documentSend",
|
|
@@ -5558,21 +5570,21 @@ const ei = X2.exports, ti = {
|
|
|
5558
5570
|
}
|
|
5559
5571
|
},
|
|
5560
5572
|
components: {
|
|
5561
|
-
AddBlock:
|
|
5562
|
-
Drawer:
|
|
5563
|
-
SendForm:
|
|
5564
|
-
CCheckbox:
|
|
5565
|
-
CIcon:
|
|
5566
|
-
CButton:
|
|
5567
|
-
IsPremium:
|
|
5568
|
-
IsPremiumPreStep:
|
|
5573
|
+
AddBlock: X,
|
|
5574
|
+
Drawer: Q,
|
|
5575
|
+
SendForm: nt,
|
|
5576
|
+
CCheckbox: ye,
|
|
5577
|
+
CIcon: xe,
|
|
5578
|
+
CButton: we,
|
|
5579
|
+
IsPremium: $,
|
|
5580
|
+
IsPremiumPreStep: L
|
|
5569
5581
|
},
|
|
5570
5582
|
mixins: [
|
|
5571
|
-
|
|
5583
|
+
D([], {
|
|
5572
5584
|
useEmit: !1,
|
|
5573
5585
|
setFnName: "setFormValue"
|
|
5574
5586
|
}),
|
|
5575
|
-
|
|
5587
|
+
w
|
|
5576
5588
|
],
|
|
5577
5589
|
props: {
|
|
5578
5590
|
setFormValue: {
|
|
@@ -5625,8 +5637,8 @@ const ei = X2.exports, ti = {
|
|
|
5625
5637
|
!this.isPublicForm && ((i = window.App) != null && i.$fab) && (window.App.$fab.show = !0);
|
|
5626
5638
|
},
|
|
5627
5639
|
methods: {
|
|
5628
|
-
...
|
|
5629
|
-
createTemplate:
|
|
5640
|
+
...b({
|
|
5641
|
+
createTemplate: h.DO_CREATE_TEMPLATE
|
|
5630
5642
|
}),
|
|
5631
5643
|
open() {
|
|
5632
5644
|
this.isOpen = !0;
|
|
@@ -5655,7 +5667,7 @@ const ei = X2.exports, ti = {
|
|
|
5655
5667
|
}
|
|
5656
5668
|
}
|
|
5657
5669
|
};
|
|
5658
|
-
var
|
|
5670
|
+
var oi = function() {
|
|
5659
5671
|
var e = this, t = e._self._c;
|
|
5660
5672
|
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
5673
|
e.isOpen = a;
|
|
@@ -5663,30 +5675,34 @@ var ii = function() {
|
|
|
5663
5675
|
"is-fullscreen": e.mq === "sm"
|
|
5664
5676
|
} }, [t("CButton", { staticStyle: { position: "absolute", right: "1em", top: "1em", "z-index": "99" }, attrs: { circle: "", icon: "x", pattern: "secondary" }, on: { click: function(a) {
|
|
5665
5677
|
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", {
|
|
5678
|
+
} } }), 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() {
|
|
5679
|
+
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()];
|
|
5680
|
+
}, proxy: !0 }, { key: "footer", fn: function() {
|
|
5681
|
+
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 }) {
|
|
5682
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
|
|
5683
|
+
return [t("div", { staticClass: "flex items-center", on: { click: (s) => e.onClickSaveAsTemplate({
|
|
5684
|
+
event: s,
|
|
5685
|
+
can: a,
|
|
5686
|
+
open: n
|
|
5687
|
+
}) } }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(s) {
|
|
5688
|
+
e.saveTemplate = s;
|
|
5689
|
+
}, 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)];
|
|
5690
|
+
} }], null, !0) })];
|
|
5691
|
+
} }], null, !1, 4212506376) })], 1)];
|
|
5692
|
+
}, 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 }) {
|
|
5693
|
+
return [t("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small" }, on: { click: function(n) {
|
|
5668
5694
|
return a({ sectionKey: "answer", document: e._document });
|
|
5669
5695
|
} } }, [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
|
-
}, ai = [], si = /* @__PURE__ */ d(
|
|
5682
|
-
ti,
|
|
5683
|
-
ii,
|
|
5684
|
-
ai,
|
|
5696
|
+
} }], null, !1, 1245343054) })], 1)])])], 1)]) : e._e();
|
|
5697
|
+
}, li = [], ri = /* @__PURE__ */ d(
|
|
5698
|
+
si,
|
|
5699
|
+
oi,
|
|
5700
|
+
li,
|
|
5685
5701
|
!1,
|
|
5686
5702
|
null,
|
|
5687
|
-
"
|
|
5703
|
+
"671b8468"
|
|
5688
5704
|
);
|
|
5689
|
-
const
|
|
5705
|
+
const ci = ri.exports, di = {
|
|
5690
5706
|
i18nOptions: {
|
|
5691
5707
|
namespaces: "DocumentTemplateFormModal",
|
|
5692
5708
|
messages: {
|
|
@@ -5739,11 +5755,11 @@ const ni = si.exports, oi = {
|
|
|
5739
5755
|
},
|
|
5740
5756
|
validations: {
|
|
5741
5757
|
name: {
|
|
5742
|
-
required:
|
|
5758
|
+
required: A.requiredIf((i) => !i.updateExistingDocTemplate)
|
|
5743
5759
|
}
|
|
5744
5760
|
},
|
|
5745
5761
|
computed: {
|
|
5746
|
-
...
|
|
5762
|
+
...C({
|
|
5747
5763
|
isPosting: "templates/isPosting",
|
|
5748
5764
|
templateById: "templates/byId",
|
|
5749
5765
|
docById: "documents2/byId",
|
|
@@ -5771,10 +5787,10 @@ const ni = si.exports, oi = {
|
|
|
5771
5787
|
this.$refs.input && this.$refs.input.focus();
|
|
5772
5788
|
},
|
|
5773
5789
|
methods: {
|
|
5774
|
-
...
|
|
5775
|
-
loadTemplate:
|
|
5776
|
-
saveTemplate:
|
|
5777
|
-
updateSettings:
|
|
5790
|
+
...b({
|
|
5791
|
+
loadTemplate: h.DO_LOAD_TEMPLATE,
|
|
5792
|
+
saveTemplate: h.SAVE_TEMPLATE_FORM,
|
|
5793
|
+
updateSettings: h.UPDATE_SETTINGS
|
|
5778
5794
|
}),
|
|
5779
5795
|
async onSave() {
|
|
5780
5796
|
if (!this.document && !this.template && (this.$log.error('Missing prop "document" or "template"'), this.$emit("close")), this.$v.$invalid)
|
|
@@ -5829,7 +5845,7 @@ const ni = si.exports, oi = {
|
|
|
5829
5845
|
}
|
|
5830
5846
|
}
|
|
5831
5847
|
};
|
|
5832
|
-
var
|
|
5848
|
+
var pi = function() {
|
|
5833
5849
|
var e = this, t = e._self._c;
|
|
5834
5850
|
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
5851
|
e.name = a;
|
|
@@ -5838,26 +5854,26 @@ var li = function() {
|
|
|
5838
5854
|
}, 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
5855
|
e.keepClients = a;
|
|
5840
5856
|
}, 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
|
-
|
|
5857
|
+
}, ui = [], mi = /* @__PURE__ */ d(
|
|
5858
|
+
di,
|
|
5859
|
+
pi,
|
|
5860
|
+
ui,
|
|
5845
5861
|
!1,
|
|
5846
5862
|
null,
|
|
5847
5863
|
"ea90dfe8"
|
|
5848
5864
|
);
|
|
5849
|
-
const
|
|
5850
|
-
function
|
|
5865
|
+
const te = mi.exports;
|
|
5866
|
+
function hi(i, e, t) {
|
|
5851
5867
|
return i === i && (t !== void 0 && (i = i <= t ? i : t), e !== void 0 && (i = i >= e ? i : e)), i;
|
|
5852
5868
|
}
|
|
5853
|
-
var
|
|
5854
|
-
function
|
|
5855
|
-
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t =
|
|
5869
|
+
var fi = hi, gi = fi, F = Ke;
|
|
5870
|
+
function Ci(i, e, t) {
|
|
5871
|
+
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), gi(F(i), e, t);
|
|
5856
5872
|
}
|
|
5857
|
-
var
|
|
5858
|
-
const
|
|
5873
|
+
var vi = Ci;
|
|
5874
|
+
const yi = /* @__PURE__ */ q(vi), xi = {
|
|
5859
5875
|
name: "RemainingTrialButton",
|
|
5860
|
-
components: { IsPremium:
|
|
5876
|
+
components: { IsPremium: $ },
|
|
5861
5877
|
i18nOptions: {
|
|
5862
5878
|
namespace: "RemainingTrialButton",
|
|
5863
5879
|
messages: {
|
|
@@ -5885,47 +5901,49 @@ const fi = /* @__PURE__ */ G(hi), gi = {
|
|
|
5885
5901
|
}
|
|
5886
5902
|
}
|
|
5887
5903
|
},
|
|
5888
|
-
mixins: [
|
|
5904
|
+
mixins: [w],
|
|
5889
5905
|
methods: {
|
|
5890
|
-
clamp:
|
|
5906
|
+
clamp: yi
|
|
5891
5907
|
}
|
|
5892
5908
|
};
|
|
5893
|
-
var
|
|
5909
|
+
var wi = function() {
|
|
5894
5910
|
var e = this, t = e._self._c;
|
|
5895
5911
|
return t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({
|
|
5896
5912
|
accountType: a,
|
|
5897
|
-
trialDaysLeft:
|
|
5898
|
-
openUpgradeModal:
|
|
5913
|
+
trialDaysLeft: n,
|
|
5914
|
+
openUpgradeModal: s,
|
|
5899
5915
|
initialFreePremiumDays: o
|
|
5900
5916
|
}) {
|
|
5901
|
-
return [a === "trial" && e.mq !== "sm" ? t("v-popover", { attrs: { "popover-inner-class": "bg-white rounded-md shadow-xl" }
|
|
5902
|
-
|
|
5903
|
-
}
|
|
5917
|
+
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() {
|
|
5918
|
+
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)])];
|
|
5919
|
+
}, 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: {
|
|
5920
|
+
width: e.clamp(n / o * 100, 0, 100) + "%"
|
|
5921
|
+
} })])])]) : e._e()];
|
|
5904
5922
|
} }]) });
|
|
5905
|
-
},
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5923
|
+
}, bi = [], ki = /* @__PURE__ */ d(
|
|
5924
|
+
xi,
|
|
5925
|
+
wi,
|
|
5926
|
+
bi,
|
|
5909
5927
|
!1,
|
|
5910
5928
|
null,
|
|
5911
|
-
"
|
|
5929
|
+
"c0dbb5e9"
|
|
5912
5930
|
);
|
|
5913
|
-
const
|
|
5931
|
+
const _i = ki.exports, V = E.observable({
|
|
5914
5932
|
canEdit: !1,
|
|
5915
5933
|
isForm: !0,
|
|
5916
5934
|
setFormValue: null,
|
|
5917
5935
|
removeFormValue: null
|
|
5918
|
-
}),
|
|
5936
|
+
}), Li = {
|
|
5919
5937
|
name: "DocumentForm",
|
|
5920
5938
|
components: {
|
|
5921
|
-
DocumentFormContainer:
|
|
5922
|
-
IsPremium:
|
|
5923
|
-
IsPremiumPreStep:
|
|
5924
|
-
DocumentSend:
|
|
5925
|
-
RemainingTrialButton:
|
|
5926
|
-
},
|
|
5927
|
-
mixins: [
|
|
5928
|
-
provide: () => ({ viewSettings:
|
|
5939
|
+
DocumentFormContainer: ni,
|
|
5940
|
+
IsPremium: $,
|
|
5941
|
+
IsPremiumPreStep: L,
|
|
5942
|
+
DocumentSend: ci,
|
|
5943
|
+
RemainingTrialButton: _i
|
|
5944
|
+
},
|
|
5945
|
+
mixins: [ot, w],
|
|
5946
|
+
provide: () => ({ viewSettings: V }),
|
|
5929
5947
|
props: {
|
|
5930
5948
|
document: {
|
|
5931
5949
|
type: Object,
|
|
@@ -5991,12 +6009,12 @@ const xi = yi.exports, T = A.observable({
|
|
|
5991
6009
|
canEdit: {
|
|
5992
6010
|
immediate: !0,
|
|
5993
6011
|
handler(i) {
|
|
5994
|
-
|
|
6012
|
+
V.canEdit = !!i;
|
|
5995
6013
|
}
|
|
5996
6014
|
}
|
|
5997
6015
|
},
|
|
5998
6016
|
created() {
|
|
5999
|
-
this.setDocValue && (
|
|
6017
|
+
this.setDocValue && (V.setFormValue = this.setDocValue), this.removeDocValue && (V.removeFormValue = this.removeDocValue);
|
|
6000
6018
|
},
|
|
6001
6019
|
methods: {
|
|
6002
6020
|
isValid() {
|
|
@@ -6011,7 +6029,7 @@ const xi = yi.exports, T = A.observable({
|
|
|
6011
6029
|
},
|
|
6012
6030
|
async saveAsTemplate() {
|
|
6013
6031
|
this.document && this.$modal.show(
|
|
6014
|
-
|
|
6032
|
+
te,
|
|
6015
6033
|
{
|
|
6016
6034
|
document: this.document,
|
|
6017
6035
|
onSaveTemplate: this.onSaveTemplate
|
|
@@ -6028,30 +6046,34 @@ const xi = yi.exports, T = A.observable({
|
|
|
6028
6046
|
}
|
|
6029
6047
|
}
|
|
6030
6048
|
};
|
|
6031
|
-
var
|
|
6049
|
+
var $i = function() {
|
|
6032
6050
|
var e = this, t = e._self._c;
|
|
6033
6051
|
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
6052
|
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
|
-
|
|
6053
|
+
} }, scopedSlots: e._u([{ key: "nav-right", fn: function() {
|
|
6054
|
+
return [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a, canCreateTemplate: n }) {
|
|
6055
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
6056
|
+
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 }) {
|
|
6057
|
+
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() {
|
|
6058
|
+
return [t("CButton", { staticClass: "d-nav-button position right", staticStyle: { width: "36px", height: "36px", "padding-left": "14px", "padding-right": "14px" }, attrs: { "icon-props": {
|
|
6059
|
+
size: e.mq === "sm" ? 16 : 20,
|
|
6060
|
+
strokeWidth: 2
|
|
6061
|
+
}, size: "medium", type: "none", pattern: "tertiary", thinner: "", icon: "save" } })];
|
|
6062
|
+
}, proxy: !0 }], null, !0) }, [t("CDropdownItem", { attrs: { "icon-props": { stroke: "hsl(205, 100%, 50%)" }, "icon-left": "save" }, on: { click: function(l) {
|
|
6063
|
+
a || e.document.id ? e.submitSave() : s({ callback: e.submitSave });
|
|
6064
|
+
} } }, [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) {
|
|
6065
|
+
n ? e.saveAsTemplate() : o({
|
|
6066
|
+
callback: e.saveAsTemplate
|
|
6067
|
+
});
|
|
6068
|
+
} } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")])], 1)], 1)];
|
|
6069
|
+
} }], null, !0) }), e._t("nav-right-action", function() {
|
|
6070
|
+
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) {
|
|
6071
|
+
a || !e.doConsumeQuota || e.document.id ? e.openSendModal() : s({ callback: e.openSendModal });
|
|
6072
|
+
} } })], 1)];
|
|
6073
|
+
})], 2)];
|
|
6074
|
+
} }], null, !0) })];
|
|
6075
|
+
} }], null, !1, 989398557) })];
|
|
6076
|
+
}, proxy: !0 }], null, !1, 3195184598) }), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
|
|
6055
6077
|
expiresAt: "data.expiresAt",
|
|
6056
6078
|
personalMessage: "data.personalMessage",
|
|
6057
6079
|
defaultAnswerMethod: "data.defaultAnswerMethod",
|
|
@@ -6059,15 +6081,15 @@ var bi = function() {
|
|
|
6059
6081
|
reminders: "data.reminders",
|
|
6060
6082
|
name: "data.name"
|
|
6061
6083
|
}, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })], 1) : e._e();
|
|
6062
|
-
},
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6084
|
+
}, Si = [], Ti = /* @__PURE__ */ d(
|
|
6085
|
+
Li,
|
|
6086
|
+
$i,
|
|
6087
|
+
Si,
|
|
6066
6088
|
!1,
|
|
6067
6089
|
null,
|
|
6068
6090
|
null
|
|
6069
6091
|
);
|
|
6070
|
-
const
|
|
6092
|
+
const Di = Ti.exports, Vi = {
|
|
6071
6093
|
name: "DocumentFormRecent",
|
|
6072
6094
|
i18nOptions: {
|
|
6073
6095
|
namespaces: "DocumentFormRecent",
|
|
@@ -6083,8 +6105,8 @@ const Li = _i.exports, $i = {
|
|
|
6083
6105
|
}
|
|
6084
6106
|
},
|
|
6085
6107
|
components: {
|
|
6086
|
-
IsPremium:
|
|
6087
|
-
IsPremiumPreStep:
|
|
6108
|
+
IsPremium: $,
|
|
6109
|
+
IsPremiumPreStep: L
|
|
6088
6110
|
},
|
|
6089
6111
|
data() {
|
|
6090
6112
|
return {
|
|
@@ -6096,7 +6118,7 @@ const Li = _i.exports, $i = {
|
|
|
6096
6118
|
};
|
|
6097
6119
|
},
|
|
6098
6120
|
computed: {
|
|
6099
|
-
...
|
|
6121
|
+
...C({
|
|
6100
6122
|
docById: "documents2/byId"
|
|
6101
6123
|
})
|
|
6102
6124
|
},
|
|
@@ -6104,8 +6126,8 @@ const Li = _i.exports, $i = {
|
|
|
6104
6126
|
this.onLoadDocuments();
|
|
6105
6127
|
},
|
|
6106
6128
|
methods: {
|
|
6107
|
-
...
|
|
6108
|
-
loadDocument:
|
|
6129
|
+
...b({
|
|
6130
|
+
loadDocument: h.LOAD_DOCUMENT2
|
|
6109
6131
|
}),
|
|
6110
6132
|
async onInput() {
|
|
6111
6133
|
this.isLoading = !0, this.onLoadDocuments();
|
|
@@ -6113,7 +6135,7 @@ const Li = _i.exports, $i = {
|
|
|
6113
6135
|
async fetchDocuments(i) {
|
|
6114
6136
|
const e = this.query ? 180 : 90, t = {
|
|
6115
6137
|
createdAt: {
|
|
6116
|
-
$gte: this.$formatDate(
|
|
6138
|
+
$gte: this.$formatDate(be(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
|
|
6117
6139
|
},
|
|
6118
6140
|
// Only provide or if there is a search query to filter on
|
|
6119
6141
|
...this.query && {
|
|
@@ -6122,25 +6144,25 @@ const Li = _i.exports, $i = {
|
|
|
6122
6144
|
{
|
|
6123
6145
|
clients: {
|
|
6124
6146
|
$elemMatch: {
|
|
6125
|
-
$or: ["name", "email", "socialNo", "orgNo"].map((
|
|
6126
|
-
[
|
|
6147
|
+
$or: ["name", "email", "socialNo", "orgNo"].map((s) => ({
|
|
6148
|
+
[s]: { $regex: this.query, $options: "i" }
|
|
6127
6149
|
}))
|
|
6128
6150
|
}
|
|
6129
6151
|
}
|
|
6130
6152
|
}
|
|
6131
6153
|
]
|
|
6132
6154
|
}
|
|
6133
|
-
}, { data: a } = await
|
|
6155
|
+
}, { data: a } = await ke.getAll({
|
|
6134
6156
|
lean: !0,
|
|
6135
6157
|
filter: encodeURIComponent(JSON.stringify(t)),
|
|
6136
6158
|
fields: "clients,data.name,createdAt",
|
|
6137
6159
|
skip: i || 0,
|
|
6138
6160
|
sort: "-createdAt",
|
|
6139
6161
|
limit: 10
|
|
6140
|
-
}), { items:
|
|
6141
|
-
return
|
|
6162
|
+
}), { items: n = [] } = a || {};
|
|
6163
|
+
return n;
|
|
6142
6164
|
},
|
|
6143
|
-
onLoadDocuments:
|
|
6165
|
+
onLoadDocuments: z(async function() {
|
|
6144
6166
|
this.isLoading = !0, this.hasItems = !0;
|
|
6145
6167
|
const e = await this.fetchDocuments();
|
|
6146
6168
|
(!e || !e.length) && (this.canFetchMore = !1), this.list = [...e || []], this.isLoading = !1;
|
|
@@ -6155,17 +6177,17 @@ const Li = _i.exports, $i = {
|
|
|
6155
6177
|
}
|
|
6156
6178
|
}
|
|
6157
6179
|
};
|
|
6158
|
-
var
|
|
6180
|
+
var Bi = function() {
|
|
6159
6181
|
var e = this, t = e._self._c;
|
|
6160
6182
|
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
6183
|
e.query = a;
|
|
6162
6184
|
}, expression: "query" } }) : e._e()], 2), t("div", { staticClass: "recent-list" }, [e.isLoading && !e.list.length ? e._l(3, function(a) {
|
|
6163
6185
|
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:
|
|
6186
|
+
}) : !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 }) {
|
|
6187
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
6166
6188
|
return [t("div", e._l(e.list, function(o, l) {
|
|
6167
6189
|
return t("div", { key: o._id, staticClass: "recent-item", on: { click: function(r) {
|
|
6168
|
-
|
|
6190
|
+
n ? e.onUseDocTemplate(o._id) : s({
|
|
6169
6191
|
callback: () => e.onUseDocTemplate(o._id)
|
|
6170
6192
|
});
|
|
6171
6193
|
}, "&mouseover": function(r) {
|
|
@@ -6182,53 +6204,57 @@ var Si = function() {
|
|
|
6182
6204
|
}), 0)];
|
|
6183
6205
|
} }], null, !0) })];
|
|
6184
6206
|
} }]) })]], 2)]);
|
|
6185
|
-
},
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6207
|
+
}, Mi = [], Ii = /* @__PURE__ */ d(
|
|
6208
|
+
Vi,
|
|
6209
|
+
Bi,
|
|
6210
|
+
Mi,
|
|
6189
6211
|
!1,
|
|
6190
6212
|
null,
|
|
6191
6213
|
"9c78dbb6"
|
|
6192
6214
|
);
|
|
6193
|
-
const
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
}
|
|
6215
|
+
const Fi = Ii.exports, Hi = /* @__PURE__ */ _e({
|
|
6216
|
+
__name: "DocumentIcon",
|
|
6217
|
+
props: {
|
|
6218
|
+
isPlaceholder: { type: Boolean, default: !1 },
|
|
6219
|
+
isAdd: { type: Boolean, default: !1 },
|
|
6220
|
+
compact: { type: Boolean, default: !1 },
|
|
6221
|
+
thumbnail: { default: "" },
|
|
6222
|
+
media: null,
|
|
6223
|
+
name: { default: "" }
|
|
6224
|
+
},
|
|
6225
|
+
emits: ["triggerOpenTemplate"],
|
|
6226
|
+
setup(i, { emit: e }) {
|
|
6227
|
+
const t = i, a = () => e("triggerOpenTemplate"), n = Le(), s = $e(), o = y(() => s.style), l = y(() => s.staticClass), r = y(() => s.class), c = y(() => s.key), g = y(() => s.attrs), S = y(
|
|
6228
|
+
() => m.t("_common:empty", { thing: m.t("_common:template") })
|
|
6229
|
+
), M = y(() => Se(t.name, 60));
|
|
6230
|
+
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: lt };
|
|
6202
6231
|
}
|
|
6203
|
-
};
|
|
6204
|
-
var
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6232
|
+
});
|
|
6233
|
+
var Ai = function() {
|
|
6234
|
+
var e = this, t = e._self._c, a = e._self._setupProxy;
|
|
6235
|
+
return t("div", e._b({ key: a.key, staticClass: "item", class: [
|
|
6236
|
+
a.staticClass,
|
|
6237
|
+
a.styleClass,
|
|
6208
6238
|
{
|
|
6209
|
-
"is-placeholder":
|
|
6210
|
-
"is-add":
|
|
6211
|
-
"is-compact":
|
|
6239
|
+
"is-placeholder": e.isPlaceholder,
|
|
6240
|
+
"is-add": e.isAdd,
|
|
6241
|
+
"is-compact": e.compact
|
|
6212
6242
|
}
|
|
6213
|
-
], style:
|
|
6214
|
-
|
|
6215
|
-
} }
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
Bi,
|
|
6222
|
-
Mi,
|
|
6223
|
-
Ii,
|
|
6224
|
-
!0,
|
|
6243
|
+
], 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: {
|
|
6244
|
+
backgroundImage: `url(${e.thumbnail})`
|
|
6245
|
+
} }) : 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)]);
|
|
6246
|
+
}, Pi = [], Ei = /* @__PURE__ */ d(
|
|
6247
|
+
Hi,
|
|
6248
|
+
Ai,
|
|
6249
|
+
Pi,
|
|
6250
|
+
!1,
|
|
6225
6251
|
null,
|
|
6226
|
-
"
|
|
6252
|
+
"b9a00284"
|
|
6227
6253
|
);
|
|
6228
|
-
const
|
|
6254
|
+
const zi = Ei.exports, Zi = {
|
|
6229
6255
|
name: "HorizontalScroll",
|
|
6230
6256
|
components: {
|
|
6231
|
-
Simplebar:
|
|
6257
|
+
Simplebar: _
|
|
6232
6258
|
},
|
|
6233
6259
|
data() {
|
|
6234
6260
|
return {
|
|
@@ -6255,10 +6281,10 @@ const Hi = Fi.exports, Ai = {
|
|
|
6255
6281
|
},
|
|
6256
6282
|
methods: {
|
|
6257
6283
|
go(i) {
|
|
6258
|
-
var
|
|
6284
|
+
var n, s;
|
|
6259
6285
|
if (!this.$refs.container)
|
|
6260
6286
|
return;
|
|
6261
|
-
const e = (i > 0 ? 1 : -1) * (this.$refs.container.offsetWidth / 2), t = (
|
|
6287
|
+
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;
|
|
6262
6288
|
if (!t)
|
|
6263
6289
|
return;
|
|
6264
6290
|
const { scrollLeft: a } = t;
|
|
@@ -6270,8 +6296,8 @@ const Hi = Fi.exports, Ai = {
|
|
|
6270
6296
|
},
|
|
6271
6297
|
scrollHandler() {
|
|
6272
6298
|
clearTimeout(this.scrollTimer), this.scrollTimer = setTimeout(() => {
|
|
6273
|
-
var
|
|
6274
|
-
const i = (
|
|
6299
|
+
var n, s;
|
|
6300
|
+
const i = (s = (n = this.$refs) == null ? void 0 : n.list) == null ? void 0 : s.scrollElement;
|
|
6275
6301
|
if (!i)
|
|
6276
6302
|
return;
|
|
6277
6303
|
const { scrollWidth: e, scrollLeft: t, offsetWidth: a } = i;
|
|
@@ -6280,7 +6306,7 @@ const Hi = Fi.exports, Ai = {
|
|
|
6280
6306
|
}
|
|
6281
6307
|
}
|
|
6282
6308
|
};
|
|
6283
|
-
var
|
|
6309
|
+
var Oi = function() {
|
|
6284
6310
|
var e = this, t = e._self._c;
|
|
6285
6311
|
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) {
|
|
6286
6312
|
return e.go(-1);
|
|
@@ -6293,32 +6319,32 @@ var Pi = function() {
|
|
|
6293
6319
|
return e.$emit("expand");
|
|
6294
6320
|
} } })];
|
|
6295
6321
|
})], 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)]);
|
|
6296
|
-
},
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6322
|
+
}, Ui = [], Ri = /* @__PURE__ */ d(
|
|
6323
|
+
Zi,
|
|
6324
|
+
Oi,
|
|
6325
|
+
Ui,
|
|
6300
6326
|
!1,
|
|
6301
6327
|
null,
|
|
6302
6328
|
"31e10485"
|
|
6303
6329
|
);
|
|
6304
|
-
const
|
|
6305
|
-
function
|
|
6330
|
+
const Gi = Ri.exports;
|
|
6331
|
+
function Wi(i, { availableProducts: e }) {
|
|
6306
6332
|
if (!i)
|
|
6307
6333
|
throw new Error("Missing parameter templateId");
|
|
6308
|
-
const t = e, a = Object.keys(t).find((
|
|
6334
|
+
const t = e, a = Object.keys(t).find((n) => {
|
|
6309
6335
|
var o;
|
|
6310
|
-
const
|
|
6311
|
-
t[
|
|
6336
|
+
const s = u(
|
|
6337
|
+
t[n],
|
|
6312
6338
|
"metadata.companyPurchase"
|
|
6313
6339
|
);
|
|
6314
|
-
return (
|
|
6340
|
+
return (s == null ? void 0 : s.type) === "template" && ((o = s == null ? void 0 : s.data) == null ? void 0 : o.id) === i;
|
|
6315
6341
|
});
|
|
6316
6342
|
return a ? t[a] : null;
|
|
6317
6343
|
}
|
|
6318
|
-
async function
|
|
6344
|
+
async function qi(i) {
|
|
6319
6345
|
if (!i)
|
|
6320
6346
|
throw new Error("Missing argument stripeProduct");
|
|
6321
|
-
const e = i == null ? void 0 : i.prices[0], { data: t } = await
|
|
6347
|
+
const e = i == null ? void 0 : i.prices[0], { data: t } = await Te.createCheckoutSession({
|
|
6322
6348
|
items: [
|
|
6323
6349
|
{
|
|
6324
6350
|
stripePriceStripeId: e.stripeId,
|
|
@@ -6330,27 +6356,27 @@ async function Oi(i) {
|
|
|
6330
6356
|
}), { redirectUrl: a } = t;
|
|
6331
6357
|
window.open(a, "_blank");
|
|
6332
6358
|
}
|
|
6333
|
-
function
|
|
6334
|
-
var
|
|
6359
|
+
function ie(i, { availableProducts: e }) {
|
|
6360
|
+
var n, s, o;
|
|
6335
6361
|
let t = null;
|
|
6336
|
-
const a =
|
|
6362
|
+
const a = Wi(i.templateId, {
|
|
6337
6363
|
availableProducts: e
|
|
6338
6364
|
});
|
|
6339
6365
|
return a && (t = {
|
|
6340
|
-
price:
|
|
6341
|
-
currency: (
|
|
6366
|
+
price: R((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, {
|
|
6367
|
+
currency: (s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].currency
|
|
6342
6368
|
}),
|
|
6343
6369
|
isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
|
|
6344
|
-
onBuy: async () =>
|
|
6370
|
+
onBuy: async () => qi(a)
|
|
6345
6371
|
}), t;
|
|
6346
6372
|
}
|
|
6347
|
-
const
|
|
6373
|
+
const Ni = {
|
|
6348
6374
|
name: "GalleryTemplateModal",
|
|
6349
6375
|
components: {
|
|
6350
|
-
simplebar:
|
|
6351
|
-
DocumentLayout:
|
|
6352
|
-
IsPremium:
|
|
6353
|
-
IsPremiumPreStep:
|
|
6376
|
+
simplebar: _,
|
|
6377
|
+
DocumentLayout: Ne,
|
|
6378
|
+
IsPremium: $,
|
|
6379
|
+
IsPremiumPreStep: L
|
|
6354
6380
|
},
|
|
6355
6381
|
props: {
|
|
6356
6382
|
// Instance of template
|
|
@@ -6412,13 +6438,13 @@ const Ri = {
|
|
|
6412
6438
|
};
|
|
6413
6439
|
},
|
|
6414
6440
|
computed: {
|
|
6415
|
-
...
|
|
6441
|
+
...C({
|
|
6416
6442
|
isLoading: "templates/isPosting",
|
|
6417
6443
|
stripeProducts: "stripe/products",
|
|
6418
6444
|
isSuperUser: "application/isSuperUser"
|
|
6419
6445
|
}),
|
|
6420
6446
|
previewDocument() {
|
|
6421
|
-
const { data: i, defaultData: e } = this.template, t = new
|
|
6447
|
+
const { data: i, defaultData: e } = this.template, t = new N({
|
|
6422
6448
|
data: {
|
|
6423
6449
|
...e,
|
|
6424
6450
|
template: i,
|
|
@@ -6434,20 +6460,20 @@ const Ri = {
|
|
|
6434
6460
|
}
|
|
6435
6461
|
},
|
|
6436
6462
|
created() {
|
|
6437
|
-
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn =
|
|
6463
|
+
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = De.on(
|
|
6438
6464
|
"event",
|
|
6439
6465
|
async ({ type: i, action: e, data: t }) => {
|
|
6440
6466
|
var a;
|
|
6441
6467
|
if (i === "companyPurchase" && e === "applied" && (t == null ? void 0 : t.type) === "template") {
|
|
6442
|
-
const
|
|
6443
|
-
if (
|
|
6468
|
+
const n = (a = t == null ? void 0 : t.data) == null ? void 0 : a.id;
|
|
6469
|
+
if (n !== this.template.id)
|
|
6444
6470
|
return;
|
|
6445
|
-
const
|
|
6446
|
-
templateId:
|
|
6471
|
+
const s = {
|
|
6472
|
+
templateId: n,
|
|
6447
6473
|
isVisibleApp: !0,
|
|
6448
6474
|
includePurchaseInfo: !0
|
|
6449
|
-
}, o = await this.fetchGallery(
|
|
6450
|
-
this.privateProduct =
|
|
6475
|
+
}, o = await this.fetchGallery(s);
|
|
6476
|
+
this.privateProduct = ie(
|
|
6451
6477
|
o[0],
|
|
6452
6478
|
{ availableProducts: this.stripeProducts }
|
|
6453
6479
|
);
|
|
@@ -6463,7 +6489,7 @@ const Ri = {
|
|
|
6463
6489
|
const i = this.template.id;
|
|
6464
6490
|
i || (this.templateStat = null);
|
|
6465
6491
|
try {
|
|
6466
|
-
const { data: e } = await
|
|
6492
|
+
const { data: e } = await Ve.get(i);
|
|
6467
6493
|
this.templateStat = e;
|
|
6468
6494
|
} catch {
|
|
6469
6495
|
this.templateStat = null;
|
|
@@ -6480,42 +6506,42 @@ const Ri = {
|
|
|
6480
6506
|
},
|
|
6481
6507
|
async copyToClipboard(i) {
|
|
6482
6508
|
const e = `${f.baseUrl}/template/${i}`;
|
|
6483
|
-
await
|
|
6509
|
+
await j(e) && P("info", this.$t("copyMessage"));
|
|
6484
6510
|
}
|
|
6485
6511
|
}
|
|
6486
6512
|
};
|
|
6487
|
-
var
|
|
6513
|
+
var ji = function() {
|
|
6488
6514
|
var a;
|
|
6489
6515
|
var e = this, t = e._self._c;
|
|
6490
6516
|
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: {
|
|
6491
6517
|
backgroundImage: `url(${e.meta.author.avatar})`
|
|
6492
6518
|
} }), 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(
|
|
6493
6519
|
e.$t("_common:purchased", { thing: e.$t("_common:template") })
|
|
6494
|
-
) } })]) : 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:
|
|
6495
|
-
return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick:
|
|
6520
|
+
) } })]) : 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 }) {
|
|
6521
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
6496
6522
|
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) {
|
|
6497
|
-
e.isPublicForm ||
|
|
6523
|
+
e.isPublicForm || n ? e.useSelectedTemplate() : s({ callback: e.useSelectedTemplate });
|
|
6498
6524
|
} } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")]) : e._e()];
|
|
6499
6525
|
} }], null, !0) })];
|
|
6500
|
-
} }]) }), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate:
|
|
6501
|
-
return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick:
|
|
6526
|
+
} }]) }), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: n }) {
|
|
6527
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
6502
6528
|
var o;
|
|
6503
6529
|
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) {
|
|
6504
|
-
e.didSave || (e.isPublicForm ||
|
|
6530
|
+
e.didSave || (e.isPublicForm || n ? e.saveAsTemplate() : s({ callback: e.saveAsTemplate }));
|
|
6505
6531
|
} } }, [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()];
|
|
6506
6532
|
} }], null, !0) })];
|
|
6507
|
-
} }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "link", wide: "" }, on: { click: function(
|
|
6533
|
+
} }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "link", wide: "" }, on: { click: function(n) {
|
|
6508
6534
|
return e.copyToClipboard(e.template.id);
|
|
6509
6535
|
} } }, [e._v(" " + e._s(e.$t("_common:share", { thing: e.$t("_common:link") })) + " ")]) : e._e()], 2)])]);
|
|
6510
|
-
},
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6536
|
+
}, Ki = [], Yi = /* @__PURE__ */ d(
|
|
6537
|
+
Ni,
|
|
6538
|
+
ji,
|
|
6539
|
+
Ki,
|
|
6514
6540
|
!1,
|
|
6515
6541
|
null,
|
|
6516
6542
|
"a4cb4a3f"
|
|
6517
6543
|
);
|
|
6518
|
-
const
|
|
6544
|
+
const Qi = Yi.exports, Ji = {
|
|
6519
6545
|
name: "GalleryLogic",
|
|
6520
6546
|
i18nOptions: {
|
|
6521
6547
|
namespaces: "GalleryLogic",
|
|
@@ -6615,7 +6641,7 @@ const Ni = qi.exports, ji = {
|
|
|
6615
6641
|
};
|
|
6616
6642
|
},
|
|
6617
6643
|
computed: {
|
|
6618
|
-
...
|
|
6644
|
+
...C({
|
|
6619
6645
|
stripeProducts: "stripe/products"
|
|
6620
6646
|
}),
|
|
6621
6647
|
galleryItems() {
|
|
@@ -6640,16 +6666,16 @@ const Ni = qi.exports, ji = {
|
|
|
6640
6666
|
}
|
|
6641
6667
|
},
|
|
6642
6668
|
beforeCreate() {
|
|
6643
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
6669
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Je);
|
|
6644
6670
|
},
|
|
6645
6671
|
async created() {
|
|
6646
|
-
var t, a,
|
|
6672
|
+
var t, a, n, s;
|
|
6647
6673
|
this.canPurchase && await this.loadPrices();
|
|
6648
6674
|
let i = this.galleryCategory;
|
|
6649
6675
|
!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(
|
|
6650
6676
|
({ key: o }) => o === i
|
|
6651
6677
|
)), await this.loadTemplateGallery();
|
|
6652
|
-
const e = (
|
|
6678
|
+
const e = (s = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : s.id;
|
|
6653
6679
|
if (e)
|
|
6654
6680
|
try {
|
|
6655
6681
|
const o = this.templateGalleryItems.find(
|
|
@@ -6657,12 +6683,12 @@ const Ni = qi.exports, ji = {
|
|
|
6657
6683
|
);
|
|
6658
6684
|
this.selectGalleryItem(o);
|
|
6659
6685
|
} catch (o) {
|
|
6660
|
-
|
|
6686
|
+
B(o);
|
|
6661
6687
|
}
|
|
6662
6688
|
},
|
|
6663
6689
|
methods: {
|
|
6664
|
-
...
|
|
6665
|
-
loadPrices:
|
|
6690
|
+
...b({
|
|
6691
|
+
loadPrices: h.LOAD_PRICES
|
|
6666
6692
|
}),
|
|
6667
6693
|
async loadTemplateGallery() {
|
|
6668
6694
|
this.isLoading = !0;
|
|
@@ -6675,7 +6701,7 @@ const Ni = qi.exports, ji = {
|
|
|
6675
6701
|
const e = await this.fetchGallery(i);
|
|
6676
6702
|
this.templateGalleryItems = (e || []).map((t) => {
|
|
6677
6703
|
if (this.canPurchase && t.isPurchasable) {
|
|
6678
|
-
const a =
|
|
6704
|
+
const a = ie(t, {
|
|
6679
6705
|
availableProducts: this.stripeProducts
|
|
6680
6706
|
});
|
|
6681
6707
|
a && (t.product = a);
|
|
@@ -6686,20 +6712,20 @@ const Ni = qi.exports, ji = {
|
|
|
6686
6712
|
[]
|
|
6687
6713
|
);
|
|
6688
6714
|
} catch (e) {
|
|
6689
|
-
|
|
6715
|
+
B(e);
|
|
6690
6716
|
} finally {
|
|
6691
6717
|
this.isLoading = !1;
|
|
6692
6718
|
}
|
|
6693
6719
|
},
|
|
6694
6720
|
async getGalleryTemplate(i) {
|
|
6695
|
-
var
|
|
6721
|
+
var s;
|
|
6696
6722
|
const e = {
|
|
6697
6723
|
_id: i,
|
|
6698
6724
|
populate: "templateId",
|
|
6699
6725
|
isVisibleApp: !0,
|
|
6700
6726
|
includePurchaseInfo: !0
|
|
6701
|
-
}, t = await this.fetchGallery(e), a = (
|
|
6702
|
-
return a ? (
|
|
6727
|
+
}, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
|
|
6728
|
+
return a ? (Be(a), new Me(a)) : null;
|
|
6703
6729
|
},
|
|
6704
6730
|
onUseTemplate(i) {
|
|
6705
6731
|
if (!i)
|
|
@@ -6722,7 +6748,7 @@ const Ni = qi.exports, ji = {
|
|
|
6722
6748
|
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
6723
6749
|
};
|
|
6724
6750
|
this.$modal.show(
|
|
6725
|
-
|
|
6751
|
+
Qi,
|
|
6726
6752
|
{
|
|
6727
6753
|
template: i,
|
|
6728
6754
|
fetchGallery: this.fetchGallery,
|
|
@@ -6777,16 +6803,16 @@ const Ni = qi.exports, ji = {
|
|
|
6777
6803
|
selectGalleryItem: this.selectGalleryItem
|
|
6778
6804
|
});
|
|
6779
6805
|
}
|
|
6780
|
-
},
|
|
6781
|
-
var
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6806
|
+
}, Xi = null, ea = null;
|
|
6807
|
+
var ta = /* @__PURE__ */ d(
|
|
6808
|
+
Ji,
|
|
6809
|
+
Xi,
|
|
6810
|
+
ea,
|
|
6785
6811
|
!1,
|
|
6786
6812
|
null,
|
|
6787
6813
|
null
|
|
6788
6814
|
);
|
|
6789
|
-
const
|
|
6815
|
+
const ia = ta.exports, aa = {
|
|
6790
6816
|
i18nOptions: {
|
|
6791
6817
|
namespaces: "TemplateSelector",
|
|
6792
6818
|
messages: {
|
|
@@ -6830,13 +6856,13 @@ const Ji = Qi.exports, Xi = {
|
|
|
6830
6856
|
},
|
|
6831
6857
|
name: "TemplateSelector",
|
|
6832
6858
|
components: {
|
|
6833
|
-
HorizontalScroll:
|
|
6834
|
-
DocumentIcon:
|
|
6835
|
-
DocumentRecent:
|
|
6836
|
-
GalleryLogic:
|
|
6837
|
-
IsPremiumPreStep:
|
|
6859
|
+
HorizontalScroll: Gi,
|
|
6860
|
+
DocumentIcon: zi,
|
|
6861
|
+
DocumentRecent: Fi,
|
|
6862
|
+
GalleryLogic: ia,
|
|
6863
|
+
IsPremiumPreStep: L
|
|
6838
6864
|
},
|
|
6839
|
-
mixins: [
|
|
6865
|
+
mixins: [w],
|
|
6840
6866
|
props: {
|
|
6841
6867
|
// Used for creating documents form project/client views
|
|
6842
6868
|
projectId: {
|
|
@@ -6887,7 +6913,7 @@ const Ji = Qi.exports, Xi = {
|
|
|
6887
6913
|
};
|
|
6888
6914
|
},
|
|
6889
6915
|
computed: {
|
|
6890
|
-
...
|
|
6916
|
+
...C({
|
|
6891
6917
|
canFeature: "application/feature",
|
|
6892
6918
|
templateById: "templates/byId",
|
|
6893
6919
|
isFetchingTemplates: "templates/isFetching",
|
|
@@ -6933,11 +6959,11 @@ const Ji = Qi.exports, Xi = {
|
|
|
6933
6959
|
this.loadTemplates();
|
|
6934
6960
|
},
|
|
6935
6961
|
methods: {
|
|
6936
|
-
...
|
|
6937
|
-
loadTemplatesAction:
|
|
6938
|
-
loadTemplate:
|
|
6939
|
-
createTemplate:
|
|
6940
|
-
removeTemplate:
|
|
6962
|
+
...b({
|
|
6963
|
+
loadTemplatesAction: h.LOAD_TEMPLATES,
|
|
6964
|
+
loadTemplate: h.LOAD_TEMPLATE,
|
|
6965
|
+
createTemplate: h.DO_CREATE_TEMPLATE,
|
|
6966
|
+
removeTemplate: h.REMOVE_TEMPLATE
|
|
6941
6967
|
}),
|
|
6942
6968
|
loadTemplates() {
|
|
6943
6969
|
const i = {};
|
|
@@ -6954,7 +6980,7 @@ const Ji = Qi.exports, Xi = {
|
|
|
6954
6980
|
},
|
|
6955
6981
|
async saveTemplate(i) {
|
|
6956
6982
|
try {
|
|
6957
|
-
const { data: e } = i, t =
|
|
6983
|
+
const { data: e } = i, t = Ie(e, [
|
|
6958
6984
|
"_id",
|
|
6959
6985
|
"id",
|
|
6960
6986
|
"companyId",
|
|
@@ -6962,13 +6988,13 @@ const Ji = Qi.exports, Xi = {
|
|
|
6962
6988
|
]);
|
|
6963
6989
|
return await this.createTemplate({ body: t }), !0;
|
|
6964
6990
|
} catch (e) {
|
|
6965
|
-
|
|
6991
|
+
B(e);
|
|
6966
6992
|
}
|
|
6967
6993
|
return !1;
|
|
6968
6994
|
},
|
|
6969
6995
|
async openTemplateFormModal({ document: i = null, template: e = null }) {
|
|
6970
6996
|
this.$modal.show(
|
|
6971
|
-
|
|
6997
|
+
te,
|
|
6972
6998
|
{
|
|
6973
6999
|
document: i,
|
|
6974
7000
|
template: e,
|
|
@@ -6985,7 +7011,7 @@ const Ji = Qi.exports, Xi = {
|
|
|
6985
7011
|
);
|
|
6986
7012
|
},
|
|
6987
7013
|
async fetchGallery(i = {}) {
|
|
6988
|
-
const { data: e } = await
|
|
7014
|
+
const { data: e } = await Fe.get(i);
|
|
6989
7015
|
return e;
|
|
6990
7016
|
},
|
|
6991
7017
|
canUseTemplate(i) {
|
|
@@ -6993,86 +7019,94 @@ const Ji = Qi.exports, Xi = {
|
|
|
6993
7019
|
},
|
|
6994
7020
|
async copyToClipboard(i) {
|
|
6995
7021
|
const e = `${f.baseUrl}/template/${i}`;
|
|
6996
|
-
await
|
|
7022
|
+
await j(e) && P("info", this.$t("copyMessage"));
|
|
6997
7023
|
}
|
|
6998
7024
|
}
|
|
6999
7025
|
};
|
|
7000
|
-
var
|
|
7026
|
+
var na = function() {
|
|
7001
7027
|
var e = this, t = e._self._c;
|
|
7002
7028
|
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 }) {
|
|
7003
|
-
return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(
|
|
7029
|
+
return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
|
|
7004
7030
|
e.isExpanded = !0;
|
|
7005
|
-
} } }, e._l(e.myTemplates, function(
|
|
7006
|
-
return t("DocumentIcon", { key:
|
|
7007
|
-
|
|
7008
|
-
} }
|
|
7031
|
+
} } }, e._l(e.myTemplates, function(n) {
|
|
7032
|
+
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) {
|
|
7033
|
+
n.placeholder || (e.canUseTemplate(n) ? e.select({ templateId: n.id }) : a());
|
|
7034
|
+
} }, scopedSlots: e._u([{ key: "badge", fn: function() {
|
|
7035
|
+
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)];
|
|
7036
|
+
}, proxy: !0 }], null, !0) }, [n.onModify === "create" && !n.doConsumeDocumentQuota ? t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
|
|
7009
7037
|
content: e.$t("icon.freeTooltip"),
|
|
7010
7038
|
placement: "bottom"
|
|
7011
7039
|
}, expression: `{
|
|
7012
7040
|
content: $t('icon.freeTooltip'),
|
|
7013
7041
|
placement: 'bottom'
|
|
7014
|
-
}` }], staticStyle: { top: "-8px", right: "-4px" }, attrs: { icon: "info", type: "none", pattern: "tertiary", size: "small" }, nativeOn: { click: function(
|
|
7015
|
-
|
|
7016
|
-
} } }) : t("CDropdown", { staticStyle: { top: "-8px", right: "-4px" }, attrs: { "append-to-body": "" }, nativeOn: { click: function(
|
|
7017
|
-
|
|
7018
|
-
} }
|
|
7019
|
-
return e.
|
|
7020
|
-
}
|
|
7021
|
-
return e.
|
|
7022
|
-
} } }, [e._v(" " + e._s(e.$t("_common:
|
|
7023
|
-
return e.
|
|
7024
|
-
} } }, [e._v(" " + e._s(e.$t("_common:
|
|
7025
|
-
return e.
|
|
7042
|
+
}` }], staticStyle: { top: "-8px", right: "-4px" }, attrs: { icon: "info", type: "none", pattern: "tertiary", size: "small" }, nativeOn: { click: function(s) {
|
|
7043
|
+
s.stopPropagation();
|
|
7044
|
+
} } }) : t("CDropdown", { staticStyle: { top: "-8px", right: "-4px" }, attrs: { "append-to-body": "" }, nativeOn: { click: function(s) {
|
|
7045
|
+
s.stopPropagation();
|
|
7046
|
+
} }, scopedSlots: e._u([{ key: "trigger", fn: function() {
|
|
7047
|
+
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" } })];
|
|
7048
|
+
}, proxy: !0 }], null, !0) }, [e.onEditTemplate ? t("CDropdownItem", { attrs: { "icon-left": "template-color" }, on: { click: function(s) {
|
|
7049
|
+
return e.onEditTemplate(n.id);
|
|
7050
|
+
} } }, [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) {
|
|
7051
|
+
return e.openTemplateFormModal({ template: n });
|
|
7052
|
+
} } }, [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) {
|
|
7053
|
+
return e.copyToClipboard(n.id);
|
|
7054
|
+
} } }, [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) {
|
|
7055
|
+
return e.removeTemplate({ template: n });
|
|
7026
7056
|
} } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 1)], 1);
|
|
7027
7057
|
}), 1)];
|
|
7028
7058
|
} }]) })], 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({
|
|
7029
7059
|
galleryItems: a,
|
|
7030
|
-
categories:
|
|
7031
|
-
activeCategory:
|
|
7060
|
+
categories: n,
|
|
7061
|
+
activeCategory: s,
|
|
7032
7062
|
selectCategory: o,
|
|
7033
7063
|
selectGalleryItem: l
|
|
7034
7064
|
}) {
|
|
7035
7065
|
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) {
|
|
7036
7066
|
r.stopPropagation();
|
|
7037
|
-
} }
|
|
7038
|
-
return t("
|
|
7067
|
+
} }, scopedSlots: e._u([{ key: "trigger", fn: function() {
|
|
7068
|
+
return [t("CButton", { attrs: { size: "small", type: "none", pattern: "secondary", "icon-right": "chevron-down" } }, [e._v(" " + e._s(s ? s.label : "") + " ")])];
|
|
7069
|
+
}, proxy: !0 }], null, !0) }, e._l(n, function(r) {
|
|
7070
|
+
return t("CDropdownItem", { key: r.key, attrs: { "icon-right": s && s.key === r.key ? "check" : "" }, on: { click: function(c) {
|
|
7039
7071
|
return o(r);
|
|
7040
7072
|
} } }, [e._v(" " + e._s(r.label) + " ")]);
|
|
7041
|
-
})
|
|
7042
|
-
return t("DocumentIcon", { key: r.id, staticClass: "template-item", attrs: { "is-placeholder": r.placeholder, media: { type: "image", resourceUrl: r.backgroundUrl }, name: r.name }, on: {
|
|
7073
|
+
}), 1)], 1), t("div", { staticClass: "section-subtitle", domProps: { innerHTML: e._s(e.$t("gallerySubTitle")) } })]), t("HorizontalScroll", { staticClass: "template-list" }, e._l(a, function(r) {
|
|
7074
|
+
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) {
|
|
7043
7075
|
r.placeholder || l(r);
|
|
7044
|
-
} }
|
|
7076
|
+
} }, scopedSlots: e._u([{ key: "badge", fn: function() {
|
|
7077
|
+
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()];
|
|
7078
|
+
}, proxy: !0 }], null, !0) });
|
|
7045
7079
|
}), 1)], 1)];
|
|
7046
|
-
} }], null, !1,
|
|
7047
|
-
},
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7080
|
+
} }], 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)]);
|
|
7081
|
+
}, sa = [], oa = /* @__PURE__ */ d(
|
|
7082
|
+
aa,
|
|
7083
|
+
na,
|
|
7084
|
+
sa,
|
|
7051
7085
|
!1,
|
|
7052
7086
|
null,
|
|
7053
|
-
"
|
|
7087
|
+
"3bd7c759"
|
|
7054
7088
|
);
|
|
7055
|
-
const
|
|
7056
|
-
var
|
|
7057
|
-
function
|
|
7058
|
-
for (var a = -1,
|
|
7059
|
-
var o = e[a], l =
|
|
7060
|
-
t(l, o) &&
|
|
7089
|
+
const la = oa.exports;
|
|
7090
|
+
var ra = He, ca = Ae, da = Pe;
|
|
7091
|
+
function pa(i, e, t) {
|
|
7092
|
+
for (var a = -1, n = e.length, s = {}; ++a < n; ) {
|
|
7093
|
+
var o = e[a], l = ra(i, o);
|
|
7094
|
+
t(l, o) && ca(s, da(o, i), l);
|
|
7061
7095
|
}
|
|
7062
|
-
return
|
|
7096
|
+
return s;
|
|
7063
7097
|
}
|
|
7064
|
-
var
|
|
7065
|
-
function
|
|
7066
|
-
return
|
|
7067
|
-
return
|
|
7098
|
+
var ua = pa, ma = ua, ha = Ee;
|
|
7099
|
+
function fa(i, e) {
|
|
7100
|
+
return ma(i, e, function(t, a) {
|
|
7101
|
+
return ha(i, a);
|
|
7068
7102
|
});
|
|
7069
7103
|
}
|
|
7070
|
-
var
|
|
7071
|
-
return i == null ? {} :
|
|
7072
|
-
}),
|
|
7073
|
-
const
|
|
7074
|
-
|
|
7075
|
-
const
|
|
7104
|
+
var ga = fa, Ca = ga, va = tt, ya = va(function(i, e) {
|
|
7105
|
+
return i == null ? {} : Ca(i, e);
|
|
7106
|
+
}), xa = ya;
|
|
7107
|
+
const wa = /* @__PURE__ */ q(xa);
|
|
7108
|
+
E.use(st);
|
|
7109
|
+
const ba = {
|
|
7076
7110
|
name: "DocForm",
|
|
7077
7111
|
i18nOptions: {
|
|
7078
7112
|
namespaces: "widgetDocForm",
|
|
@@ -7086,9 +7120,9 @@ const va = {
|
|
|
7086
7120
|
}
|
|
7087
7121
|
},
|
|
7088
7122
|
components: {
|
|
7089
|
-
TemplateSelector:
|
|
7090
|
-
DocumentForm:
|
|
7091
|
-
PostSend:
|
|
7123
|
+
TemplateSelector: la,
|
|
7124
|
+
DocumentForm: Di,
|
|
7125
|
+
PostSend: ut
|
|
7092
7126
|
},
|
|
7093
7127
|
provide() {
|
|
7094
7128
|
return {
|
|
@@ -7151,7 +7185,7 @@ const va = {
|
|
|
7151
7185
|
};
|
|
7152
7186
|
},
|
|
7153
7187
|
computed: {
|
|
7154
|
-
...
|
|
7188
|
+
...ze({
|
|
7155
7189
|
company: "application/company",
|
|
7156
7190
|
feature: "application/feature",
|
|
7157
7191
|
can: "application/can",
|
|
@@ -7160,8 +7194,8 @@ const va = {
|
|
|
7160
7194
|
docById: "documents2/byId"
|
|
7161
7195
|
}),
|
|
7162
7196
|
canDoActions() {
|
|
7163
|
-
var i, e, t, a,
|
|
7164
|
-
return !!((
|
|
7197
|
+
var i, e, t, a, n, s;
|
|
7198
|
+
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);
|
|
7165
7199
|
}
|
|
7166
7200
|
},
|
|
7167
7201
|
watch: {
|
|
@@ -7184,18 +7218,18 @@ const va = {
|
|
|
7184
7218
|
(!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
|
|
7185
7219
|
},
|
|
7186
7220
|
methods: {
|
|
7187
|
-
...
|
|
7188
|
-
removeFormKeyValue:
|
|
7189
|
-
loadDocumentForm:
|
|
7190
|
-
duplicateDocumentForm:
|
|
7191
|
-
saveDocument:
|
|
7192
|
-
loadCompanyUser:
|
|
7193
|
-
saveTemplate:
|
|
7221
|
+
...Ze({
|
|
7222
|
+
removeFormKeyValue: h.REMOVE_FORM_KEY_VALUE,
|
|
7223
|
+
loadDocumentForm: h.LOAD_DOCUMENT2_FORM,
|
|
7224
|
+
duplicateDocumentForm: h.LOAD_DUPLICATE_DOCUMENT2_FORM,
|
|
7225
|
+
saveDocument: h.SAVE_DYNDOC_FORM,
|
|
7226
|
+
loadCompanyUser: h.LOAD_COMPANY_USER,
|
|
7227
|
+
saveTemplate: h.SAVE_TEMPLATE_FORM
|
|
7194
7228
|
}),
|
|
7195
7229
|
async initDoc() {
|
|
7196
7230
|
if (!this.rawDoc)
|
|
7197
7231
|
throw new Error("Missing initiated form document");
|
|
7198
|
-
this.document = new
|
|
7232
|
+
this.document = new N({
|
|
7199
7233
|
data: this.rawDoc,
|
|
7200
7234
|
can: this.can,
|
|
7201
7235
|
getters: this.$store.getters,
|
|
@@ -7203,8 +7237,8 @@ const va = {
|
|
|
7203
7237
|
});
|
|
7204
7238
|
},
|
|
7205
7239
|
async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
|
|
7206
|
-
var
|
|
7207
|
-
const a =
|
|
7240
|
+
var n;
|
|
7241
|
+
const a = wa({ ...this.rawDoc }, [
|
|
7208
7242
|
"__tempId",
|
|
7209
7243
|
"externalReferences",
|
|
7210
7244
|
"subscriberCompanyUserIds",
|
|
@@ -7216,9 +7250,9 @@ const va = {
|
|
|
7216
7250
|
_formData: a
|
|
7217
7251
|
}) : await this.loadDocumentForm({
|
|
7218
7252
|
templateId: i,
|
|
7219
|
-
formData: t ?
|
|
7253
|
+
formData: t ? Oe(t, a) : null,
|
|
7220
7254
|
_formData: a
|
|
7221
|
-
}), (
|
|
7255
|
+
}), (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";
|
|
7222
7256
|
},
|
|
7223
7257
|
setDocValue({ key: i, value: e }) {
|
|
7224
7258
|
return this.setFormValue({ key: i, value: e });
|
|
@@ -7236,7 +7270,7 @@ const va = {
|
|
|
7236
7270
|
}), typeof this.closeFunc == "function" && await this.closeFunc(), this.isSavingTemplate = !1;
|
|
7237
7271
|
},
|
|
7238
7272
|
async onSaveDocument({ doSend: i = !1 } = {}) {
|
|
7239
|
-
var
|
|
7273
|
+
var s;
|
|
7240
7274
|
let e;
|
|
7241
7275
|
if (typeof this.beforeSave == "function" && (e = await this.beforeSave(this.document)), i && typeof this.beforeSend == "function" && (e = await this.beforeSend(this.document)), e)
|
|
7242
7276
|
return;
|
|
@@ -7244,30 +7278,32 @@ const va = {
|
|
|
7244
7278
|
if (!t)
|
|
7245
7279
|
return;
|
|
7246
7280
|
const a = this.docById(t);
|
|
7247
|
-
let
|
|
7248
|
-
i && (
|
|
7281
|
+
let n;
|
|
7282
|
+
i && (n = !!(a != null && a.senderClient) || this.isManualDelivery(a)), n ? (this.document = a, this.view = "postSend") : (s = this.closeFunc) == null || s.call(this);
|
|
7249
7283
|
},
|
|
7250
7284
|
goBack() {
|
|
7251
7285
|
this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
|
|
7252
7286
|
},
|
|
7253
7287
|
isManualDelivery(i) {
|
|
7254
|
-
const e =
|
|
7288
|
+
const e = H(i);
|
|
7255
7289
|
return !e.sms && !e.email;
|
|
7256
7290
|
}
|
|
7257
7291
|
}
|
|
7258
7292
|
};
|
|
7259
|
-
var
|
|
7293
|
+
var ka = function() {
|
|
7260
7294
|
var e = this, t = e._self._c;
|
|
7261
|
-
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 }
|
|
7262
|
-
},
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7295
|
+
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() {
|
|
7296
|
+
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()];
|
|
7297
|
+
}, proxy: !0 }]) }) : e.view === "postSend" ? t("PostSend", { attrs: { document: e.document, "on-send-func": e.closeFunc, "on-close-func": e.closeFunc } }) : e._e()], 1);
|
|
7298
|
+
}, _a = [], La = /* @__PURE__ */ d(
|
|
7299
|
+
ba,
|
|
7300
|
+
ka,
|
|
7301
|
+
_a,
|
|
7266
7302
|
!1,
|
|
7267
7303
|
null,
|
|
7268
|
-
"
|
|
7304
|
+
"297c06c4"
|
|
7269
7305
|
);
|
|
7270
|
-
const
|
|
7306
|
+
const ja = La.exports;
|
|
7271
7307
|
export {
|
|
7272
|
-
|
|
7308
|
+
ja as default
|
|
7273
7309
|
};
|