@cling-se/widget 0.19.5 → 0.19.7
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/CHANGELOG.md +12 -0
- package/dist/{AddClientCallout-B3NbV9vX.js → AddClientCallout-BdGevuQo.js} +6 -6
- package/dist/{AnswerModal-C_at-56v.js → AnswerModal-DfjF-RVP.js} +3 -3
- package/dist/{AttachmentItem-C4kyomn3.js → AttachmentItem-BEd3qVAo.js} +17 -17
- package/dist/{BaseUpload-Z3O2bebR.js → BaseUpload-Zm4EX8ir.js} +2 -2
- package/dist/{BlockMedia-BSGtFCsS.js → BlockMedia-ZHaA4OMV.js} +14 -14
- package/dist/CCallout-BlglVZrm.js +124 -0
- package/dist/{CCurrencyDropdown-CyFge_fD.js → CCurrencyDropdown-BzvKsm1N.js} +9 -9
- package/dist/{CDropdownItem-BWmAQwpG.js → CDropdownItem-B5rgSee7.js} +7 -7
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js → CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js} +18 -18
- package/dist/{CPhoneFormat-D-BGsI3p.js → CPhoneFormat-DaDNMlmK.js} +1 -1
- package/dist/{CPhoneInput-Dl7BSG8y.js → CPhoneInput-BUogm59J.js} +18 -18
- package/dist/{CPriceInput-C8Os9b3V.js → CPriceInput-Cd5OHMJS.js} +11 -11
- package/dist/CSelect-CmoAbVkP.js +129 -0
- package/dist/CSkeleton-BF6EYj8H.js +47 -0
- package/dist/{ClientAutocomplete-0XPP0tZr.js → ClientAutocomplete-CHfp4YiV.js} +18 -18
- package/dist/{ClientModal-Ddv5YiOD.js → ClientModal-Com23Qgc.js} +31 -31
- package/dist/{ColorPicker-ClWlJZqh.js → ColorPicker-BzdHtZep.js} +26 -26
- package/dist/{CompanyModal-CdisHhTQ.js → CompanyModal-CGjSgTEJ.js} +16 -16
- package/dist/{ContentWrapper-BZ_ff5l9.js → ContentWrapper-CS-Bh4Bk.js} +21 -21
- package/dist/{CoverBlockSettings-C3F4jTwa.js → CoverBlockSettings-DDHQzLdc.js} +28 -28
- package/dist/{DocAnswer-BkbWkje5.js → DocAnswer-Cmdsw_CW.js} +2 -2
- package/dist/{DocDetails-DxUXsbDV.js → DocDetails-C5Vzh550.js} +28 -28
- package/dist/{DocForm-CABBteE8.js → DocForm-DEUVV11n.js} +994 -960
- package/dist/{DocFormSend-xGIxXjxv.js → DocFormSend-Dt7N3wCz.js} +2 -2
- package/dist/{DocLinks-D01zyA-z.js → DocLinks-C6-Er0rk.js} +2 -2
- package/dist/{DocModalBase-DfrPL4tZ.js → DocModalBase-DbuJwHXi.js} +1 -1
- package/dist/{DocPrint-BSKYDCQc.js → DocPrint-D_uxg7qD.js} +6 -6
- package/dist/{DocReceipt-D5Oqb1cC.js → DocReceipt-D6LP9UAa.js} +16 -16
- package/dist/{DocSendReminder-IbCLg9tW.js → DocSendReminder-DopLhyjz.js} +8 -8
- package/dist/{DocTextEditor-BVba4QPz.js → DocTextEditor-DeZtzbgm.js} +8 -8
- package/dist/{DocTimeline-CaX19zwg.js → DocTimeline-DAWZu_KT.js} +25 -25
- package/dist/{DocumentClient-DSQnO5KJ.js → DocumentClient-kxnT6k9s.js} +7 -7
- package/dist/{DocumentLayout-CkNcKcB_.js → DocumentLayout-DaVz9SGF.js} +68 -68
- package/dist/{DocumentLogotype-DAVtl6S_.js → DocumentLogotype-G-a7gBIC.js} +6 -6
- package/dist/{DocumentVoided-DZYqqkrE.js → DocumentVoided-SG_ShMmc.js} +5 -5
- package/dist/{EmbedInput-BpVkRhg5.js → EmbedInput-CJL5y3Zj.js} +9 -9
- package/dist/{EmbedSettings-BHjex6QD.js → EmbedSettings-B0X6A9Uy.js} +9 -9
- package/dist/{ErrorCallout-B9TlMH-g.js → ErrorCallout-xCSfpQWV.js} +7 -7
- package/dist/{FilePreviewModal-DP6yokyq.js → FilePreviewModal-Da_pMUoO.js} +6 -6
- package/dist/{Flag-D3GdVwWB.js → Flag-wXawyyMO.js} +1 -1
- package/dist/{HeaderSettings-sb4vPDsi.js → HeaderSettings-CD3y6-uY.js} +37 -37
- package/dist/{ImageSelectModal-CicYONc-.js → ImageSelectModal-DatnXHH1.js} +5 -5
- package/dist/{ImageUploadWrapper-CLq06imX.js → ImageUploadWrapper-CwKe3Iq7.js} +33 -33
- package/dist/{Index-2jg0DL-m.js → Index-1WPEpaVr.js} +4 -4
- package/dist/{Index-Dv0eryvg.js → Index-9ZFW8Ka7.js} +4 -4
- package/dist/{Index-Be0qeiZi.js → Index-B53eUt7Y.js} +10 -10
- package/dist/{Index-BrIFaQcB.js → Index-BJf4YdYB.js} +14 -14
- package/dist/{Index-AjcnSKQD.js → Index-BTDQax0X.js} +16 -16
- package/dist/{Index-SXJlaLRr.js → Index-Bb6JZC8l.js} +4 -4
- package/dist/{Index-DdlkzMzM.js → Index-BbVHxVFJ.js} +20 -20
- package/dist/{Index-CoadaoP0.js → Index-BlownK7_.js} +6 -6
- package/dist/{Index-BsM0XvZj.js → Index-BvAqglwa.js} +33 -33
- package/dist/{Index-CzqNrUn3.js → Index-C-EUJjuk.js} +2 -2
- package/dist/{Index-BpObvjSu.js → Index-C2-s62x7.js} +5 -5
- package/dist/{Index-DH9dMzsw.js → Index-COF0evH4.js} +10 -10
- package/dist/{Index-BtECdggQ.js → Index-CQboLS2e.js} +5 -5
- package/dist/{Index-CpGzRzMp.js → Index-CTrX3VRa.js} +5 -5
- package/dist/{Index-BU2qksFA.js → Index-CXjLkK_n.js} +13 -13
- package/dist/{Index-6H0VT88W.js → Index-Ciy9lnhS.js} +3 -3
- package/dist/{Index-BWTeXf8h.js → Index-Cjg3X74T.js} +4 -4
- package/dist/{Index-KZslz-16.js → Index-Ck-_9woY.js} +29 -29
- package/dist/{Index-DGLmjotr.js → Index-Ct735UtM.js} +2 -2
- package/dist/{Index-BePivEDQ.js → Index-D-gJQEAD.js} +3 -3
- package/dist/{Index-Bf3O-9-j.js → Index-DAkq_7Ws.js} +11 -11
- package/dist/{Index-szvZl8G-.js → Index-DOeHci16.js} +6 -6
- package/dist/{Index-BHvpY8xR.js → Index-DfuzxXzD.js} +2 -2
- package/dist/{Index-0JuAv1tp.js → Index-Dfy0PsiW.js} +25 -25
- package/dist/{Index-DO8qwrXi.js → Index-DjfbgA_7.js} +19 -19
- package/dist/{Index-CmDRJ5Xr.js → Index-DkQ8_VkX.js} +8 -8
- package/dist/{Index-DPF_0b3a.js → Index-Dxg4gEKd.js} +18 -18
- package/dist/{Index-DnnRIESN.js → Index-DzdEqsZB.js} +8 -8
- package/dist/{Index--erm1oIh.js → Index-GPliVrhC.js} +5 -5
- package/dist/{Index-RhHHrJtM.js → Index-NnBwJv9v.js} +6 -6
- package/dist/{Index-BIrwUJlj.js → Index-ezY0DbcB.js} +10 -10
- package/dist/Index-qFx0G3fC.js +4 -0
- package/dist/{Index-DijI5XXh.js → Index-yS5OPrJJ.js} +2 -2
- package/dist/{Index-0imHv6b4.js → Index-y_AJP61r.js} +12 -12
- package/dist/{Index.vue_vue_type_script_lang-CXjOi3FM.js → Index.vue_vue_type_script_lang-B3RoDZmC.js} +2 -2
- package/dist/{InputToggleRow-3992FkvA.js → InputToggleRow-D5rvQpAw.js} +11 -11
- package/dist/{ManualPopover-UiHhIKuw.js → ManualPopover-Bd-GsLGT.js} +6 -6
- package/dist/{MediaWrapper-BlaBWAWe.js → MediaWrapper-Ci0XPCcb.js} +3 -3
- package/dist/{NotBindingText-C14r7OLr.js → NotBindingText-DhndGZE3.js} +2 -2
- package/dist/{PackageGroup-ClZiyb95.js → PackageGroup-4Jt9ClVO.js} +17 -17
- package/dist/{PdfTerms-CbVKGNxc.js → PdfTerms-CGeJDJpQ.js} +5 -5
- package/dist/{PdfViewer-B_7DfQr7.js → PdfViewer-o2vb6Fya.js} +78 -78
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BM9WSi7y.js → PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js} +1 -1
- package/dist/{PriceHeader-DRkCMuGD.js → PriceHeader-BsObxLHK.js} +31 -31
- package/dist/{SearchApi-6-uNsMl8.js → SearchApi-ZczKsBb7.js} +1 -1
- package/dist/{SendForm-DnwHPbWV.js → SendForm-D5jqkofo.js} +8 -8
- package/dist/{Setup-Dz3ZCvFw.js → Setup-CdZzn0qW.js} +1 -1
- package/dist/{SmartList-7RooD2fY.js → SmartList-B36ffGAZ.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-cAzUeXVM.js → Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js} +31 -31
- package/dist/{TermsSettings-BEB2t3Ut.js → TermsSettings-CmAHVOuX.js} +14 -14
- package/dist/{ThemeColorRow-XE9QcVAy.js → ThemeColorRow-CScTIcPB.js} +6 -6
- package/dist/{ToggleBinding-BeXQfpcK.js → ToggleBinding-CVZZlpBR.js} +4 -4
- package/dist/{UploadModal-pRlJXk-Y.js → UploadModal-2tXsmGMM.js} +4 -4
- package/dist/{VideoPlayerInput-qankN5Ed.js → VideoPlayerInput-BDzjZ2St.js} +9 -9
- package/dist/{VideoPlayerSettings-WijGYtE2.js → VideoPlayerSettings-BLAEZw4C.js} +6 -6
- package/dist/{VideoSelectModal-Dhb7CmVu.js → VideoSelectModal-iqgmg85K.js} +16 -16
- package/dist/{focusDrawerMixin-DELQ4Leq.js → focusDrawerMixin-BmyahQiE.js} +1 -1
- package/dist/{formDrawerState-D_OOByIg.js → formDrawerState-B7ASfNsk.js} +1 -1
- package/dist/{helpers-BnYWgq30.js → helpers-BVP2Pul1.js} +5 -5
- package/dist/{index-CFD_4fv_.js → index-B86TZXOh.js} +32 -32
- package/dist/{index-KcSRVleg.js → index-BDb4bM0D.js} +17 -17
- package/dist/{index-BIWUM14f.js → index-BH5vwOzR.js} +3 -3
- package/dist/{index-BGFTOrwb.js → index-Cd4S4J-L.js} +56 -56
- package/dist/{index-DRINkuNg.js → index-CsbYpQqP.js} +44 -43
- package/dist/{index-P4A85Ytd.js → index-D0Qee2OX.js} +34 -34
- package/dist/{index-6175cimw.js → index-DXNrJnEc.js} +7 -7
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +137 -137
- package/dist/{main-q_EWffDQ.js → main-C2Q8_T2Y.js} +11468 -11445
- package/dist/{mapFormMixin-DjPlsXfr.js → mapFormMixin-CjfqZnmd.js} +6 -6
- package/dist/{omit-DWur9Ujv.js → omit-DzlbtNCX.js} +4 -4
- package/dist/{publicSenderState-BkZVvtJm.js → publicSenderState-C3ELW8Cw.js} +3 -3
- package/dist/{splitpanes-BR5qxnsj.js → splitpanes-CuxtOZyV.js} +1 -1
- package/dist/{template-CQlJbqXR.js → template-DzrGrOEa.js} +1 -1
- package/dist/{tippy.esm-BABwSp3j.js → tippy.esm-Bf86qEue.js} +89 -89
- package/dist/{useTermsModal-Bj2B-TdQ.js → useTermsModal-Be4HLDDm.js} +6 -6
- package/dist/{utils-C53ntVIe.js → utils-a_Odlqb5.js} +1 -1
- package/dist/{validation-u_PNxOm8.js → validation-38muBV6x.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/CCallout-DRBCakh2.js +0 -104
- package/dist/CSelect-DXAAKhB6.js +0 -98
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D_ZP_7FL.js +0 -51
- package/dist/Index-B5zszB2v.js +0 -4
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { o as
|
|
3
|
-
import { w as
|
|
4
|
-
import {
|
|
1
|
+
import tt from "./AnswerModal-DfjF-RVP.js";
|
|
2
|
+
import { o as nt } from "./index-BDb4bM0D.js";
|
|
3
|
+
import { w as Y, C as de, a as G } from "./CDropdownItem-B5rgSee7.js";
|
|
4
|
+
import { cM as ye, a as K, g as M, _ as $, o as l, b as p, j as a, d as c, t as d, w as u, x as _, e as m, Y as R, f as v, Z as oe, y as L, ab as Z, B as P, aK as X, c as C, af as j, D as be, F as S, aj as ce, L as xe, Q as q, p as Te, K as it, h as Q, ac as De, cN as ot, U, n as B, G as A, m as H, H as st, cO as at, S as lt, E as Ae, a8 as ie, a9 as ke, cE as rt, aG as Se, I as N, aa as se, aF as dt, A as ct, av as we, k as re, c7 as Ee, c8 as ze, J as ve, l as ut, ai as Ie, cP as ue, c9 as mt, cQ as pt, b8 as ht, ao as Re, cR as ft, X as Oe, cS as gt, cT as yt, aM as He, r as vt, au as Ue, aE as Ce, cU as Ct, cV as bt, cW as kt, at as wt, al as _t, cX as xt, C as qe, cY as Tt, cZ as Dt, c_ as St, c$ as It, cb as $t, d0 as Ft, d1 as Lt, d2 as Vt, b1 as Bt, d3 as Mt, d4 as Pt } from "./main-C2Q8_T2Y.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { l as At, g as Et, a as zt, b as Rt, _ as Ot, D as Ht } from "./DocumentLayout-
|
|
7
|
-
import { F as
|
|
8
|
-
import { m as
|
|
9
|
-
import "./helpers-
|
|
10
|
-
import { a as Gt } from "./ClientAutocomplete-
|
|
11
|
-
import { _ as Nt } from "./Sortable.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { C as Wt, I as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { S as Zt } from "./SmartList-
|
|
15
|
-
import { u as
|
|
16
|
-
import { r as
|
|
17
|
-
import { o as Qt, r as Yt } from "./omit-
|
|
18
|
-
import { s as
|
|
6
|
+
import { l as At, g as Et, a as zt, b as Rt, _ as Ot, D as Ht } from "./DocumentLayout-DaVz9SGF.js";
|
|
7
|
+
import { F as Ge, d as Ut } from "./tippy.esm-Bf86qEue.js";
|
|
8
|
+
import { m as ae, u as Ne, c as $e, i as qt } from "./mapFormMixin-CjfqZnmd.js";
|
|
9
|
+
import "./helpers-BVP2Pul1.js";
|
|
10
|
+
import { a as Gt } from "./ClientAutocomplete-CHfp4YiV.js";
|
|
11
|
+
import { _ as Nt } from "./Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js";
|
|
12
|
+
import { C as Wt, I as ee, _ as We, a as te, s as jt } from "./index-CsbYpQqP.js";
|
|
13
|
+
import { _ as _e } from "./CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js";
|
|
14
|
+
import { S as Zt } from "./SmartList-B36ffGAZ.js";
|
|
15
|
+
import { u as je } from "./index-B86TZXOh.js";
|
|
16
|
+
import { r as Fe, a as Kt } from "./index-BH5vwOzR.js";
|
|
17
|
+
import { o as Qt, r as Yt } from "./omit-DzlbtNCX.js";
|
|
18
|
+
import { s as W } from "./formDrawerState-B7ASfNsk.js";
|
|
19
19
|
import { s as Jt } from "./dom-DOcGU3-g.js";
|
|
20
|
-
import { S as Xt } from "./SendForm-
|
|
21
|
-
import "./template-
|
|
22
|
-
import { u as en } from "./validation-
|
|
23
|
-
import { C as tn } from "./CCallout-
|
|
24
|
-
import {
|
|
25
|
-
import { B as on } from "./BlockMedia-
|
|
20
|
+
import { S as Xt } from "./SendForm-D5jqkofo.js";
|
|
21
|
+
import "./template-DzrGrOEa.js";
|
|
22
|
+
import { u as en } from "./validation-38muBV6x.js";
|
|
23
|
+
import { C as tn } from "./CCallout-BlglVZrm.js";
|
|
24
|
+
import { C as nn } from "./CSkeleton-BF6EYj8H.js";
|
|
25
|
+
import { B as on } from "./BlockMedia-ZHaA4OMV.js";
|
|
26
26
|
const sn = {
|
|
27
27
|
name: "DocumentPostSendStep",
|
|
28
|
-
mixins: [
|
|
28
|
+
mixins: [Y],
|
|
29
29
|
i18nOptions: {
|
|
30
30
|
namespaces: "PostDocumentSend",
|
|
31
31
|
messages: {
|
|
@@ -57,7 +57,7 @@ const sn = {
|
|
|
57
57
|
},
|
|
58
58
|
computed: {
|
|
59
59
|
usesManualDelivery() {
|
|
60
|
-
const e =
|
|
60
|
+
const e = ye(this.document);
|
|
61
61
|
return !e.sms && !e.email;
|
|
62
62
|
}
|
|
63
63
|
},
|
|
@@ -66,18 +66,18 @@ const sn = {
|
|
|
66
66
|
(e = this.document) != null && e.senderClient ? await this.senderAnswer() : await this.onSend();
|
|
67
67
|
},
|
|
68
68
|
methods: {
|
|
69
|
-
...
|
|
70
|
-
updateDocument:
|
|
71
|
-
answerDocument:
|
|
72
|
-
sendDocument:
|
|
69
|
+
...K({
|
|
70
|
+
updateDocument: M.DO_UPDATE_DOCUMENT2,
|
|
71
|
+
answerDocument: M.ANSWER_OWN_DOCUMENT2,
|
|
72
|
+
sendDocument: M.DO_SEND_DOCUMENT2
|
|
73
73
|
}),
|
|
74
74
|
async handleDocumentLinks() {
|
|
75
|
-
const { id: e } = this.document || {}, t =
|
|
75
|
+
const { id: e } = this.document || {}, t = ye(this.document), n = !t.sms && !t.email;
|
|
76
76
|
n && (await this.updateDocument({
|
|
77
77
|
id: e,
|
|
78
78
|
body: { status: "sent" },
|
|
79
79
|
showMessage: !1
|
|
80
|
-
}),
|
|
80
|
+
}), nt({ id: e })), n || setTimeout(() => this.close(), 2e3);
|
|
81
81
|
},
|
|
82
82
|
async onSend() {
|
|
83
83
|
typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
|
|
@@ -94,7 +94,7 @@ const sn = {
|
|
|
94
94
|
body: { isAccepted: !0 },
|
|
95
95
|
checksum: s
|
|
96
96
|
}), await this.sendDocument({ id: e }), this.onSend()) : (this.$modal.show(
|
|
97
|
-
|
|
97
|
+
tt,
|
|
98
98
|
{
|
|
99
99
|
_document: this.document,
|
|
100
100
|
isSender: !0,
|
|
@@ -136,36 +136,36 @@ const sn = {
|
|
|
136
136
|
this.onCloseFunc && this.onCloseFunc();
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
},
|
|
139
|
+
}, an = { class: "font-inter root" }, ln = { class: "container" }, rn = { class: "icon-wrapper" }, dn = ["textContent"];
|
|
140
140
|
function cn(e, t, n, s, i, o) {
|
|
141
141
|
const r = m("CIcon"), g = m("CButton");
|
|
142
|
-
return
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
return l(), p("div", an, [
|
|
143
|
+
a("div", ln, [
|
|
144
|
+
a("div", rn, [
|
|
145
145
|
c(r, {
|
|
146
146
|
size: 20,
|
|
147
147
|
type: "email"
|
|
148
148
|
})
|
|
149
149
|
]),
|
|
150
|
-
|
|
150
|
+
a("div", {
|
|
151
151
|
class: "title",
|
|
152
152
|
textContent: d(e.$t("title"))
|
|
153
153
|
}, null, 8, dn),
|
|
154
|
-
t[0] || (t[0] =
|
|
154
|
+
t[0] || (t[0] = a("div", { class: "divider" }, null, -1)),
|
|
155
155
|
c(g, {
|
|
156
156
|
type: "secondary",
|
|
157
157
|
class: "close-button",
|
|
158
158
|
onClick: o.close
|
|
159
159
|
}, {
|
|
160
160
|
default: u(() => [
|
|
161
|
-
|
|
161
|
+
_(d(e.$t("_common:close")), 1)
|
|
162
162
|
]),
|
|
163
163
|
_: 1
|
|
164
164
|
}, 8, ["onClick"])
|
|
165
165
|
])
|
|
166
166
|
]);
|
|
167
167
|
}
|
|
168
|
-
const un = /* @__PURE__ */
|
|
168
|
+
const un = /* @__PURE__ */ $(sn, [["render", cn], ["__scopeId", "data-v-574be9ee"]]), mn = {
|
|
169
169
|
name: "Drawer",
|
|
170
170
|
props: {
|
|
171
171
|
modelValue: {
|
|
@@ -210,12 +210,12 @@ const un = /* @__PURE__ */ F(sn, [["render", cn], ["__scopeId", "data-v-574be9ee
|
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
212
|
function pn(e, t, n, s, i, o) {
|
|
213
|
-
return
|
|
214
|
-
c(
|
|
213
|
+
return l(), p("div", null, [
|
|
214
|
+
c(oe, { name: "fade" }, {
|
|
215
215
|
default: u(() => [
|
|
216
|
-
!n.hideOverlay && n.modelValue ? (
|
|
216
|
+
!n.hideOverlay && n.modelValue ? (l(), p("div", {
|
|
217
217
|
key: 0,
|
|
218
|
-
style:
|
|
218
|
+
style: R({
|
|
219
219
|
zIndex: n.zIndex
|
|
220
220
|
}),
|
|
221
221
|
class: "d-overlay"
|
|
@@ -223,20 +223,20 @@ function pn(e, t, n, s, i, o) {
|
|
|
223
223
|
]),
|
|
224
224
|
_: 1
|
|
225
225
|
}),
|
|
226
|
-
c(
|
|
226
|
+
c(oe, {
|
|
227
227
|
name: `slide-${n.placement}`
|
|
228
228
|
}, {
|
|
229
229
|
default: u(() => [
|
|
230
|
-
n.modelValue ? (
|
|
230
|
+
n.modelValue ? (l(), p("div", {
|
|
231
231
|
key: 0,
|
|
232
232
|
class: L([[n.placement], "d-content"]),
|
|
233
|
-
style:
|
|
233
|
+
style: R({
|
|
234
234
|
zIndex: n.zIndex
|
|
235
235
|
}),
|
|
236
|
-
onClick: t[0] || (t[0] =
|
|
236
|
+
onClick: t[0] || (t[0] = Z((...r) => o.onOutsideClick && o.onOutsideClick(...r), ["self"]))
|
|
237
237
|
}, [
|
|
238
|
-
|
|
239
|
-
style:
|
|
238
|
+
a("div", {
|
|
239
|
+
style: R({
|
|
240
240
|
borderRadius: 0,
|
|
241
241
|
margin: 0,
|
|
242
242
|
overflow: "auto",
|
|
@@ -246,7 +246,7 @@ function pn(e, t, n, s, i, o) {
|
|
|
246
246
|
}),
|
|
247
247
|
class: "d-content-slot"
|
|
248
248
|
}, [
|
|
249
|
-
|
|
249
|
+
P(e.$slots, "default", {}, void 0, !0)
|
|
250
250
|
], 4)
|
|
251
251
|
], 6)) : v("", !0)
|
|
252
252
|
]),
|
|
@@ -254,11 +254,11 @@ function pn(e, t, n, s, i, o) {
|
|
|
254
254
|
}, 8, ["name"])
|
|
255
255
|
]);
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const Ze = /* @__PURE__ */ $(mn, [["render", pn], ["__scopeId", "data-v-05571167"]]), hn = {
|
|
258
258
|
name: "DocumentDrawer",
|
|
259
259
|
components: {
|
|
260
|
-
simplebar:
|
|
261
|
-
Drawer:
|
|
260
|
+
simplebar: X,
|
|
261
|
+
Drawer: Ze
|
|
262
262
|
},
|
|
263
263
|
props: {
|
|
264
264
|
position: {
|
|
@@ -282,12 +282,12 @@ const je = /* @__PURE__ */ F(mn, [["render", pn], ["__scopeId", "data-v-05571167
|
|
|
282
282
|
emits: ["update:open"]
|
|
283
283
|
}, fn = { style: { height: "100%", "z-index": "110" } }, gn = { style: { height: "100%", overflow: "auto" } };
|
|
284
284
|
function yn(e, t, n, s, i, o) {
|
|
285
|
-
return
|
|
285
|
+
return l(), C(oe, {
|
|
286
286
|
name: n.fixed ? void 0 : "grow-anim",
|
|
287
287
|
mode: "out-in"
|
|
288
288
|
}, {
|
|
289
289
|
default: u(() => [
|
|
290
|
-
n.open ? (
|
|
290
|
+
n.open ? (l(), C(j(n.fixed ? "drawer" : "div"), be({ key: 0 }, e.$props, {
|
|
291
291
|
ref: "drawer",
|
|
292
292
|
class: [{
|
|
293
293
|
"is-sticky": !n.fixed
|
|
@@ -300,10 +300,10 @@ function yn(e, t, n, s, i, o) {
|
|
|
300
300
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => n.fixed ? e.$emit("update:open", r) : null)
|
|
301
301
|
}), {
|
|
302
302
|
default: u(() => [
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
style:
|
|
303
|
+
a("div", fn, [
|
|
304
|
+
a("div", gn, [
|
|
305
|
+
a("div", {
|
|
306
|
+
style: R(
|
|
307
307
|
n.fixed && {
|
|
308
308
|
maxWidth: "100%",
|
|
309
309
|
width: "280px",
|
|
@@ -312,7 +312,7 @@ function yn(e, t, n, s, i, o) {
|
|
|
312
312
|
}
|
|
313
313
|
)
|
|
314
314
|
}, [
|
|
315
|
-
|
|
315
|
+
P(e.$slots, "default", {}, void 0, !0)
|
|
316
316
|
], 4)
|
|
317
317
|
])
|
|
318
318
|
])
|
|
@@ -323,25 +323,25 @@ function yn(e, t, n, s, i, o) {
|
|
|
323
323
|
_: 3
|
|
324
324
|
}, 8, ["name"]);
|
|
325
325
|
}
|
|
326
|
-
const vn = /* @__PURE__ */
|
|
326
|
+
const vn = /* @__PURE__ */ $(hn, [["render", yn], ["__scopeId", "data-v-cd55344e"]]), Cn = {
|
|
327
327
|
name: "DocumentFormNav"
|
|
328
328
|
}, bn = { class: "DocumentFormNav fixed left-0 right-0 top-0 z-[98] bg-gray-200 px-2 py-2 shadow-lg md:px-6" }, kn = { class: "flex" }, wn = { class: "inline-flex flex-grow items-center" }, _n = { class: "inline-flex flex-auto items-center justify-center" }, xn = { class: "inline-flex flex-grow items-center justify-end" };
|
|
329
329
|
function Tn(e, t, n, s, i, o) {
|
|
330
|
-
return
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
330
|
+
return l(), p("div", bn, [
|
|
331
|
+
a("div", kn, [
|
|
332
|
+
a("div", wn, [
|
|
333
|
+
P(e.$slots, "left")
|
|
334
334
|
]),
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
a("div", _n, [
|
|
336
|
+
P(e.$slots, "center")
|
|
337
337
|
]),
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
a("div", xn, [
|
|
339
|
+
P(e.$slots, "right")
|
|
340
340
|
])
|
|
341
341
|
])
|
|
342
342
|
]);
|
|
343
343
|
}
|
|
344
|
-
const Dn = /* @__PURE__ */
|
|
344
|
+
const Dn = /* @__PURE__ */ $(Cn, [["render", Tn]]), Sn = {
|
|
345
345
|
name: "DocumentFormViewRadio",
|
|
346
346
|
props: {
|
|
347
347
|
modelValue: {
|
|
@@ -354,42 +354,42 @@ const Dn = /* @__PURE__ */ F(Cn, [["render", Tn]]), Sn = {
|
|
|
354
354
|
}
|
|
355
355
|
},
|
|
356
356
|
emits: ["update:modelValue"]
|
|
357
|
-
},
|
|
358
|
-
function
|
|
357
|
+
}, In = { class: "inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 text-sm text-white" };
|
|
358
|
+
function $n(e, t, n, s, i, o) {
|
|
359
359
|
const r = m("CIcon");
|
|
360
|
-
return
|
|
361
|
-
|
|
360
|
+
return l(), p("div", In, [
|
|
361
|
+
a("div", {
|
|
362
362
|
class: L([{
|
|
363
363
|
"m-0 bg-white px-3 py-[1em] text-zinc-900 drop-shadow-md": n.modelValue === "edit"
|
|
364
364
|
}, "inline-flex select-none items-center justify-center rounded-md px-1 font-semibold leading-none text-gray-700 transition duration-150 ease-linear"]),
|
|
365
365
|
onClick: t[0] || (t[0] = (g) => n.modelValue === "preview" ? e.$emit("update:modelValue", "edit") : null)
|
|
366
366
|
}, [
|
|
367
|
-
n.small ? (
|
|
367
|
+
n.small ? (l(), C(r, {
|
|
368
368
|
key: 0,
|
|
369
369
|
type: "edit",
|
|
370
370
|
size: "20"
|
|
371
|
-
})) : (
|
|
372
|
-
|
|
371
|
+
})) : (l(), p(S, { key: 1 }, [
|
|
372
|
+
_(d(e.$t("edit")), 1)
|
|
373
373
|
], 64))
|
|
374
374
|
], 2),
|
|
375
|
-
|
|
375
|
+
a("div", {
|
|
376
376
|
class: L([{
|
|
377
377
|
"m-0 bg-white px-3 py-[1em] text-zinc-900 drop-shadow-md": n.modelValue === "preview"
|
|
378
378
|
}, "inline-flex select-none items-center justify-center rounded-md px-1 font-semibold leading-none text-gray-700 transition duration-150 ease-linear"]),
|
|
379
379
|
"data-onboarding": "preview-button",
|
|
380
380
|
onClick: t[1] || (t[1] = (g) => n.modelValue === "edit" ? e.$emit("update:modelValue", "preview") : null)
|
|
381
381
|
}, [
|
|
382
|
-
n.small ? (
|
|
382
|
+
n.small ? (l(), C(r, {
|
|
383
383
|
key: 0,
|
|
384
384
|
type: "eye",
|
|
385
385
|
size: "20"
|
|
386
|
-
})) : (
|
|
387
|
-
|
|
386
|
+
})) : (l(), p(S, { key: 1 }, [
|
|
387
|
+
_(d(e.$t("preview")), 1)
|
|
388
388
|
], 64))
|
|
389
389
|
], 2)
|
|
390
390
|
]);
|
|
391
391
|
}
|
|
392
|
-
const Fn = /* @__PURE__ */
|
|
392
|
+
const Fn = /* @__PURE__ */ $(Sn, [["render", $n]]), Ln = {
|
|
393
393
|
name: "BlockControlButtons",
|
|
394
394
|
i18nOptions: {
|
|
395
395
|
namespace: "blockControlButtons",
|
|
@@ -430,23 +430,23 @@ const Fn = /* @__PURE__ */ F(Sn, [["render", In]]), Ln = {
|
|
|
430
430
|
}, Pn = { class: "control-direction" };
|
|
431
431
|
function An(e, t, n, s, i, o) {
|
|
432
432
|
const r = m("CIcon");
|
|
433
|
-
return
|
|
434
|
-
o.canToggleVisibility ? (
|
|
433
|
+
return l(), p("div", Vn, [
|
|
434
|
+
o.canToggleVisibility ? (l(), p("div", {
|
|
435
435
|
key: 0,
|
|
436
436
|
class: "control-button",
|
|
437
437
|
onClick: t[0] || (t[0] = (g) => e.$emit("toggle-visible", !n.isVisible))
|
|
438
438
|
}, [
|
|
439
|
-
n.isVisible ? v("", !0) : (
|
|
439
|
+
n.isVisible ? v("", !0) : (l(), p("span", Bn, d(e.$t("hidden")), 1)),
|
|
440
440
|
c(r, {
|
|
441
441
|
type: n.isVisible ? "eye" : "eye-off",
|
|
442
442
|
size: "14",
|
|
443
443
|
class: L({ "mr-1": !n.isVisible })
|
|
444
444
|
}, null, 8, ["type", "class"])
|
|
445
445
|
])) : v("", !0),
|
|
446
|
-
|
|
447
|
-
!o.isHidden && n.isMovable ? (
|
|
448
|
-
|
|
449
|
-
|
|
446
|
+
P(e.$slots, "default", {}, void 0, !0),
|
|
447
|
+
!o.isHidden && n.isMovable ? (l(), p("div", Mn, [
|
|
448
|
+
a("div", Pn, [
|
|
449
|
+
a("div", {
|
|
450
450
|
class: "control-button",
|
|
451
451
|
onClick: t[1] || (t[1] = (g) => e.$emit("move", "up"))
|
|
452
452
|
}, [
|
|
@@ -455,7 +455,7 @@ function An(e, t, n, s, i, o) {
|
|
|
455
455
|
size: "16"
|
|
456
456
|
})
|
|
457
457
|
]),
|
|
458
|
-
|
|
458
|
+
a("div", {
|
|
459
459
|
class: "control-button",
|
|
460
460
|
onClick: t[2] || (t[2] = (g) => e.$emit("move", "down"))
|
|
461
461
|
}, [
|
|
@@ -465,7 +465,7 @@ function An(e, t, n, s, i, o) {
|
|
|
465
465
|
})
|
|
466
466
|
])
|
|
467
467
|
]),
|
|
468
|
-
|
|
468
|
+
a("div", {
|
|
469
469
|
class: "control-button remove",
|
|
470
470
|
onClick: t[3] || (t[3] = (g) => e.$emit("remove"))
|
|
471
471
|
}, [
|
|
@@ -477,7 +477,7 @@ function An(e, t, n, s, i, o) {
|
|
|
477
477
|
])) : v("", !0)
|
|
478
478
|
]);
|
|
479
479
|
}
|
|
480
|
-
const En = /* @__PURE__ */
|
|
480
|
+
const En = /* @__PURE__ */ $(Ln, [["render", An], ["__scopeId", "data-v-2b534db7"]]), zn = ["inert"], Rn = /* @__PURE__ */ ce({
|
|
481
481
|
__name: "DynamicBlock",
|
|
482
482
|
props: {
|
|
483
483
|
isDragging: { type: Boolean, default: !1 },
|
|
@@ -490,48 +490,48 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
490
490
|
},
|
|
491
491
|
emits: ["edit", "toggle-visible", "move", "remove"],
|
|
492
492
|
setup(e, { emit: t }) {
|
|
493
|
-
const n = t, { uid: s } =
|
|
494
|
-
typeof
|
|
493
|
+
const n = t, { uid: s } = it(), i = xe(!1), o = xe(() => n("edit", s)), r = q(() => typeof e.isVisible == "boolean" && !e.isVisible), g = q(() => e.isEditView ? !e.isDragging && i.value ? !0 : r.value : !1), h = q(() => r.value ? "h-16 overflow-hidden after:bg-gradient-to-b after:from-white/50 after:to-white relative after:absolute after:content-[''] after:inset-0 after:z-[1]" : ""), b = (k) => {
|
|
494
|
+
typeof k == "function" && (o.value = k);
|
|
495
495
|
};
|
|
496
|
-
return
|
|
497
|
-
const
|
|
498
|
-
return
|
|
496
|
+
return Te("sectionTopNode", s), Te("setOpenDrawer", b), (k, w) => {
|
|
497
|
+
const T = m("CButton"), D = m("Animation");
|
|
498
|
+
return l(), C(D, { class: "w-full" }, {
|
|
499
499
|
default: u(() => [
|
|
500
|
-
|
|
500
|
+
a("div", {
|
|
501
501
|
class: L([[
|
|
502
502
|
{
|
|
503
|
-
"is-edit-view":
|
|
503
|
+
"is-edit-view": k.isEditView,
|
|
504
504
|
"is-hovering": i.value,
|
|
505
|
-
"min-h-none":
|
|
505
|
+
"min-h-none": k.blockType === "custom" || r.value,
|
|
506
506
|
"border-b border-gray-200": r.value
|
|
507
507
|
},
|
|
508
508
|
h.value
|
|
509
509
|
], "block-root"]),
|
|
510
|
-
style:
|
|
511
|
-
|
|
510
|
+
style: R(
|
|
511
|
+
k.isDragging && {
|
|
512
512
|
pointerEvents: "none"
|
|
513
513
|
}
|
|
514
514
|
),
|
|
515
|
-
onMouseoverPassive:
|
|
516
|
-
onMouseleavePassive:
|
|
515
|
+
onMouseoverPassive: w[3] || (w[3] = (y) => i.value = !0),
|
|
516
|
+
onMouseleavePassive: w[4] || (w[4] = (y) => i.value = !1)
|
|
517
517
|
}, [
|
|
518
|
-
|
|
518
|
+
a("div", {
|
|
519
519
|
class: L(["block-container", { "spacing-snug": r.value }]),
|
|
520
520
|
inert: r.value
|
|
521
521
|
}, [
|
|
522
|
-
|
|
522
|
+
P(k.$slots, "default", {}, void 0, !0)
|
|
523
523
|
], 10, zn),
|
|
524
|
-
g.value ? (
|
|
524
|
+
g.value ? (l(), C(En, {
|
|
525
525
|
key: 0,
|
|
526
526
|
class: "control-root z-10",
|
|
527
|
-
"is-movable":
|
|
528
|
-
"is-visible":
|
|
529
|
-
onToggleVisible:
|
|
530
|
-
onMove:
|
|
531
|
-
onRemove:
|
|
527
|
+
"is-movable": k.canMove,
|
|
528
|
+
"is-visible": k.isVisible,
|
|
529
|
+
onToggleVisible: w[0] || (w[0] = (y) => n("toggle-visible", y)),
|
|
530
|
+
onMove: w[1] || (w[1] = (y) => n("move", y)),
|
|
531
|
+
onRemove: w[2] || (w[2] = (y) => n("remove"))
|
|
532
532
|
}, {
|
|
533
533
|
default: u(() => [
|
|
534
|
-
|
|
534
|
+
k.showEditButton ? (l(), C(T, {
|
|
535
535
|
key: 0,
|
|
536
536
|
round: "",
|
|
537
537
|
size: "small",
|
|
@@ -541,7 +541,7 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
541
541
|
onClick: o.value
|
|
542
542
|
}, {
|
|
543
543
|
default: u(() => [
|
|
544
|
-
|
|
544
|
+
_(d(k.$t("_common:edit").capitalize()), 1)
|
|
545
545
|
]),
|
|
546
546
|
_: 1
|
|
547
547
|
}, 8, ["onClick"])) : v("", !0)
|
|
@@ -554,7 +554,7 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
554
554
|
});
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
}), On = /* @__PURE__ */
|
|
557
|
+
}), On = /* @__PURE__ */ $(Rn, [["__scopeId", "data-v-9cab60b2"]]), Hn = {
|
|
558
558
|
name: "LogoBanner",
|
|
559
559
|
props: {
|
|
560
560
|
position: {
|
|
@@ -567,34 +567,34 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
567
567
|
},
|
|
568
568
|
computed: {
|
|
569
569
|
logoUrl() {
|
|
570
|
-
const { brand: e } =
|
|
570
|
+
const { brand: e } = Q;
|
|
571
571
|
return e === "cling" ? "/img/cling/icons/apple-touch-icon-60x60.png" : `/img/${e.includes("fortnox") ? "fortnox" : e}/icons/apple-touch-icon-60x60.png`;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}, Un = ["href"], qn = { class: "mr-2 h-5 w-5 overflow-hidden rounded bg-white" }, Gn = ["src", "alt"], Nn = { class: "text-xs font-medium text-white" };
|
|
575
575
|
function Wn(e, t, n, s, i, o) {
|
|
576
|
-
return
|
|
576
|
+
return l(), p("div", {
|
|
577
577
|
class: L([n.position, "pointer-events-none bottom-0 left-0 right-0 z-50 flex justify-end px-[10px] pb-[10px]"])
|
|
578
578
|
}, [
|
|
579
|
-
|
|
579
|
+
a("a", {
|
|
580
580
|
class: "pointer-events-auto inline-flex h-8 items-center rounded-md border border-white/30 bg-black/80 pl-1.5 pr-2",
|
|
581
581
|
href: `https://${e.$t(
|
|
582
582
|
"_common:brand.domain"
|
|
583
583
|
)}?utm_source=document&utm_medium=logo-banner`,
|
|
584
584
|
target: "_blank"
|
|
585
585
|
}, [
|
|
586
|
-
|
|
587
|
-
|
|
586
|
+
a("div", qn, [
|
|
587
|
+
a("img", {
|
|
588
588
|
src: o.logoUrl,
|
|
589
589
|
alt: e.$t("brand.name"),
|
|
590
590
|
class: "h-full w-full"
|
|
591
591
|
}, null, 8, Gn)
|
|
592
592
|
]),
|
|
593
|
-
|
|
593
|
+
a("div", Nn, " Made in " + d(e.$t("brand.name")), 1)
|
|
594
594
|
], 8, Un)
|
|
595
595
|
], 2);
|
|
596
596
|
}
|
|
597
|
-
const jn = /* @__PURE__ */
|
|
597
|
+
const jn = /* @__PURE__ */ $(Hn, [["render", Wn]]), Zn = { class: "relative h-full w-full" }, Kn = { class: "mb-4 text-xl font-bold" }, Ke = /* @__PURE__ */ ce({
|
|
598
598
|
__name: "DragWindow",
|
|
599
599
|
props: {
|
|
600
600
|
offset: {},
|
|
@@ -602,21 +602,21 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
602
602
|
},
|
|
603
603
|
emits: ["close"],
|
|
604
604
|
setup(e, { emit: t }) {
|
|
605
|
-
const n = t, s =
|
|
605
|
+
const n = t, s = De("el"), i = De("handle"), { style: o } = ot(s, {
|
|
606
606
|
handle: i,
|
|
607
607
|
initialValue: { x: e.offset + 15, y: 70 }
|
|
608
608
|
});
|
|
609
609
|
return (r, g) => {
|
|
610
610
|
const h = m("CButton"), b = m("portal");
|
|
611
|
-
return
|
|
611
|
+
return l(), C(b, { to: "modal" }, {
|
|
612
612
|
default: u(() => [
|
|
613
|
-
|
|
613
|
+
a("div", {
|
|
614
614
|
ref_key: "el",
|
|
615
615
|
ref: s,
|
|
616
|
-
style:
|
|
616
|
+
style: R(U(o)),
|
|
617
617
|
class: "popup fixed z-[999] min-h-[400px] w-[280px] rounded-lg bg-white p-[1em] pb-[3em] text-sm shadow-xl"
|
|
618
618
|
}, [
|
|
619
|
-
|
|
619
|
+
a("div", Zn, [
|
|
620
620
|
c(h, {
|
|
621
621
|
icon: "x",
|
|
622
622
|
size: "small",
|
|
@@ -624,7 +624,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
624
624
|
pattern: "tertiary",
|
|
625
625
|
circle: "",
|
|
626
626
|
class: "absolute right-0 top-0",
|
|
627
|
-
onClick: g[0] || (g[0] = (
|
|
627
|
+
onClick: g[0] || (g[0] = (k) => n("close"))
|
|
628
628
|
}),
|
|
629
629
|
c(h, {
|
|
630
630
|
ref_key: "handle",
|
|
@@ -636,8 +636,8 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
636
636
|
circle: "",
|
|
637
637
|
class: "absolute right-9 top-0 cursor-grab"
|
|
638
638
|
}, null, 512),
|
|
639
|
-
|
|
640
|
-
|
|
639
|
+
a("div", Kn, d(r.title), 1),
|
|
640
|
+
P(r.$slots, "default")
|
|
641
641
|
])
|
|
642
642
|
], 4)
|
|
643
643
|
]),
|
|
@@ -645,17 +645,17 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
645
645
|
});
|
|
646
646
|
};
|
|
647
647
|
}
|
|
648
|
-
}), Qn = /([\d+.]*)(.*)/,
|
|
648
|
+
}), Qn = /([\d+.]*)(.*)/, J = (e) => (e || "").match(Qn), Yn = {
|
|
649
649
|
i18nOptions: {
|
|
650
650
|
namespaces: "common",
|
|
651
651
|
keyPrefix: "designLabels"
|
|
652
652
|
},
|
|
653
653
|
name: "Design",
|
|
654
654
|
components: {
|
|
655
|
-
FormInputRow:
|
|
656
|
-
DragWindow:
|
|
655
|
+
FormInputRow: Ge,
|
|
656
|
+
DragWindow: Ke
|
|
657
657
|
},
|
|
658
|
-
mixins: [
|
|
658
|
+
mixins: [ae(["css"], { useEmit: !1, setFnName: "set" })],
|
|
659
659
|
props: {
|
|
660
660
|
set: {
|
|
661
661
|
type: Function,
|
|
@@ -720,7 +720,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
720
720
|
// Dynamic depending on font family
|
|
721
721
|
definitionOptions: {
|
|
722
722
|
fontFamily: ({ key: e, value: t }) => {
|
|
723
|
-
const n =
|
|
723
|
+
const n = B(this.css, `${this.activeItem.selector}.fontWeight`) || B(this.activeItem, "style.fontWeight") || "400";
|
|
724
724
|
return {
|
|
725
725
|
label: this.$t("font"),
|
|
726
726
|
inputs: [
|
|
@@ -740,7 +740,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
740
740
|
};
|
|
741
741
|
},
|
|
742
742
|
fontSize: ({ key: e, value: t }) => {
|
|
743
|
-
const [, n, s] =
|
|
743
|
+
const [, n, s] = J(t);
|
|
744
744
|
return {
|
|
745
745
|
label: this.$t("size"),
|
|
746
746
|
inputs: [
|
|
@@ -828,7 +828,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
828
828
|
};
|
|
829
829
|
},
|
|
830
830
|
letterSpacing: ({ key: e, value: t }) => {
|
|
831
|
-
const [, n = 0] =
|
|
831
|
+
const [, n = 0] = J(t);
|
|
832
832
|
return {
|
|
833
833
|
label: this.$t("letterSpacing"),
|
|
834
834
|
inputs: [
|
|
@@ -859,7 +859,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
859
859
|
};
|
|
860
860
|
},
|
|
861
861
|
marginBottom: ({ key: e, value: t }) => {
|
|
862
|
-
const [, n] =
|
|
862
|
+
const [, n] = J(t);
|
|
863
863
|
return {
|
|
864
864
|
label: this.$t("marginBottom"),
|
|
865
865
|
inputs: [
|
|
@@ -940,7 +940,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
940
940
|
]
|
|
941
941
|
}),
|
|
942
942
|
width: ({ key: e, value: t }) => {
|
|
943
|
-
const [, n, s] =
|
|
943
|
+
const [, n, s] = J(t);
|
|
944
944
|
return {
|
|
945
945
|
label: this.$t("contentWidth"),
|
|
946
946
|
inputs: [
|
|
@@ -980,7 +980,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
980
980
|
};
|
|
981
981
|
},
|
|
982
982
|
padding: ({ key: e, value: t }) => {
|
|
983
|
-
const [, n] =
|
|
983
|
+
const [, n] = J(t);
|
|
984
984
|
return {
|
|
985
985
|
label: this.$t("padding"),
|
|
986
986
|
inputs: [
|
|
@@ -1020,7 +1020,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
1020
1020
|
};
|
|
1021
1021
|
},
|
|
1022
1022
|
border: ([e, t, n]) => {
|
|
1023
|
-
const s = e.value === "solid", [, i] =
|
|
1023
|
+
const s = e.value === "solid", [, i] = J(t.value), o = [
|
|
1024
1024
|
{
|
|
1025
1025
|
label: this.$t("border"),
|
|
1026
1026
|
inputs: [
|
|
@@ -1188,16 +1188,16 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
1188
1188
|
},
|
|
1189
1189
|
activeItemOptions() {
|
|
1190
1190
|
if (!this.activeItem) return [];
|
|
1191
|
-
const { selector: e, category: t, style: n = {} } = this.activeItem, s =
|
|
1191
|
+
const { selector: e, category: t, style: n = {} } = this.activeItem, s = B(this.css, e) || {}, i = (o) => s[o] || n[o];
|
|
1192
1192
|
return this[t].map(({ option: o, key: r }, g) => {
|
|
1193
|
-
const h = this.definitionOptions[o], b = Array.isArray(r) ? r.map((
|
|
1193
|
+
const h = this.definitionOptions[o], b = Array.isArray(r) ? r.map((k) => ({ key: k, value: i(k) })) : { key: r, value: i(r) };
|
|
1194
1194
|
return h(b, g);
|
|
1195
1195
|
});
|
|
1196
1196
|
}
|
|
1197
1197
|
},
|
|
1198
1198
|
watch: {
|
|
1199
1199
|
async activeItem(e) {
|
|
1200
|
-
const t =
|
|
1200
|
+
const t = B(e, "style.fontFamily");
|
|
1201
1201
|
t && (this.fontWeightOptions = await Et(t));
|
|
1202
1202
|
}
|
|
1203
1203
|
},
|
|
@@ -1209,18 +1209,18 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
1211
|
}, Jn = { style: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, Xn = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, ei = ["onClick"], ti = { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, ni = { style: { padding: "calc(0.75 * var(--rem))" } }, ii = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, oi = ["onClick"], si = { style: { "font-size": "1.075em", "font-weight": "500" } };
|
|
1212
|
-
function
|
|
1212
|
+
function ai(e, t, n, s, i, o) {
|
|
1213
1213
|
const r = m("FormInputRow"), g = m("DragWindow");
|
|
1214
|
-
return
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
(
|
|
1214
|
+
return l(), p("div", null, [
|
|
1215
|
+
a("div", Jn, [
|
|
1216
|
+
a("div", Xn, d(e.$t("typography")), 1),
|
|
1217
|
+
(l(!0), p(S, null, A(o.typography, (h) => (l(), p("div", {
|
|
1218
1218
|
key: h.label,
|
|
1219
1219
|
class: "list-option",
|
|
1220
1220
|
onClick: (b) => i.activeItem = h
|
|
1221
1221
|
}, [
|
|
1222
|
-
|
|
1223
|
-
style:
|
|
1222
|
+
a("div", {
|
|
1223
|
+
style: R({
|
|
1224
1224
|
fontSize: h.fontSize,
|
|
1225
1225
|
fontFamily: h.style.fontFamily,
|
|
1226
1226
|
fontWeight: h.style.fontWeight,
|
|
@@ -1228,29 +1228,29 @@ function li(e, t, n, s, i, o) {
|
|
|
1228
1228
|
lineHeight: 1
|
|
1229
1229
|
})
|
|
1230
1230
|
}, d(h.label), 5),
|
|
1231
|
-
|
|
1231
|
+
a("div", ti, d(h.style.fontFamily) + " " + d(h.style.fontSize), 1)
|
|
1232
1232
|
], 8, ei))), 128))
|
|
1233
1233
|
]),
|
|
1234
|
-
t[2] || (t[2] =
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
(
|
|
1234
|
+
t[2] || (t[2] = a("div", { style: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(0.5 * var(--rem)) calc(1 * var(--rem))" } }, null, -1)),
|
|
1235
|
+
a("div", ni, [
|
|
1236
|
+
a("div", ii, d(e.$t("section_other")), 1),
|
|
1237
|
+
(l(!0), p(S, null, A(i.sections, (h) => (l(), p("div", {
|
|
1238
1238
|
key: h.label,
|
|
1239
1239
|
class: "list-option",
|
|
1240
1240
|
onClick: (b) => i.activeItem = h
|
|
1241
1241
|
}, [
|
|
1242
|
-
|
|
1243
|
-
t[1] || (t[1] =
|
|
1242
|
+
a("div", si, d(h.label), 1),
|
|
1243
|
+
t[1] || (t[1] = a("div", { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, " #000000 ", -1))
|
|
1244
1244
|
], 8, oi))), 128))
|
|
1245
1245
|
]),
|
|
1246
|
-
i.activeItem ? (
|
|
1246
|
+
i.activeItem ? (l(), C(g, {
|
|
1247
1247
|
key: 0,
|
|
1248
1248
|
title: i.activeItem.label,
|
|
1249
1249
|
offset: n.offset,
|
|
1250
1250
|
onClose: t[0] || (t[0] = () => i.activeItem = null)
|
|
1251
1251
|
}, {
|
|
1252
1252
|
default: u(() => [
|
|
1253
|
-
(
|
|
1253
|
+
(l(!0), p(S, null, A(o.activeItemOptions, (h, b) => (l(), C(r, {
|
|
1254
1254
|
key: b,
|
|
1255
1255
|
label: h.label,
|
|
1256
1256
|
inputs: h.inputs
|
|
@@ -1260,7 +1260,7 @@ function li(e, t, n, s, i, o) {
|
|
|
1260
1260
|
}, 8, ["title", "offset"])) : v("", !0)
|
|
1261
1261
|
]);
|
|
1262
1262
|
}
|
|
1263
|
-
const
|
|
1263
|
+
const li = /* @__PURE__ */ $(Yn, [["render", ai], ["__scopeId", "data-v-381aaa3c"]]), ri = {
|
|
1264
1264
|
i18nOptions: {
|
|
1265
1265
|
namespaces: "DocSettings",
|
|
1266
1266
|
messages: {
|
|
@@ -1348,11 +1348,11 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
|
|
|
1348
1348
|
},
|
|
1349
1349
|
name: "DocumentGeneralSettings",
|
|
1350
1350
|
components: {
|
|
1351
|
-
FormInputRow:
|
|
1352
|
-
DragWindow:
|
|
1351
|
+
FormInputRow: Ge,
|
|
1352
|
+
DragWindow: Ke
|
|
1353
1353
|
},
|
|
1354
1354
|
mixins: [
|
|
1355
|
-
|
|
1355
|
+
ae([
|
|
1356
1356
|
"tags",
|
|
1357
1357
|
"series",
|
|
1358
1358
|
"senderId",
|
|
@@ -1376,7 +1376,7 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
|
|
|
1376
1376
|
};
|
|
1377
1377
|
},
|
|
1378
1378
|
computed: {
|
|
1379
|
-
...
|
|
1379
|
+
...H({
|
|
1380
1380
|
members: "companyUsers/all",
|
|
1381
1381
|
getMember: "companyUsers/byId",
|
|
1382
1382
|
isLoadingMembers: "companyUsers/isFetching"
|
|
@@ -1390,7 +1390,7 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
|
|
|
1390
1390
|
vatTypes() {
|
|
1391
1391
|
var t;
|
|
1392
1392
|
const e = ["vat"];
|
|
1393
|
-
return ((t =
|
|
1393
|
+
return ((t = st[Q.brand]) == null ? void 0 : t.defaultRegion) === "US" && e.push("tax"), e;
|
|
1394
1394
|
},
|
|
1395
1395
|
options() {
|
|
1396
1396
|
return [
|
|
@@ -1421,7 +1421,7 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
|
|
|
1421
1421
|
component: "select",
|
|
1422
1422
|
props: {
|
|
1423
1423
|
value: this.language,
|
|
1424
|
-
options:
|
|
1424
|
+
options: at.map((e) => ({
|
|
1425
1425
|
value: e,
|
|
1426
1426
|
label: this.$t(`iso:language.${e}`)
|
|
1427
1427
|
})).sort((e, t) => e.label.localeCompare(t.label))
|
|
@@ -1574,8 +1574,8 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
|
|
|
1574
1574
|
this.isPublicForm || await this.loadUsers();
|
|
1575
1575
|
},
|
|
1576
1576
|
methods: {
|
|
1577
|
-
...
|
|
1578
|
-
loadUsers:
|
|
1577
|
+
...K({
|
|
1578
|
+
loadUsers: M.LOAD_COMPANY_USERS
|
|
1579
1579
|
}),
|
|
1580
1580
|
update(e, t) {
|
|
1581
1581
|
this[e] = t;
|
|
@@ -1599,22 +1599,22 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
|
|
|
1599
1599
|
};
|
|
1600
1600
|
function ui(e, t, n, s, i, o) {
|
|
1601
1601
|
const r = m("FormInputRow"), g = m("DragWindow");
|
|
1602
|
-
return
|
|
1603
|
-
(
|
|
1602
|
+
return l(), p("div", di, [
|
|
1603
|
+
(l(!0), p(S, null, A(o.options, (h, b) => (l(), C(r, {
|
|
1604
1604
|
key: b,
|
|
1605
1605
|
label: h.label,
|
|
1606
1606
|
"info-tooltip": h.infoTooltip,
|
|
1607
1607
|
inputs: h.inputs
|
|
1608
1608
|
}, null, 8, ["label", "info-tooltip", "inputs"]))), 128)),
|
|
1609
|
-
i.showDragWindow ? (
|
|
1609
|
+
i.showDragWindow ? (l(), C(g, {
|
|
1610
1610
|
key: 0,
|
|
1611
1611
|
offset: n.offset,
|
|
1612
1612
|
title: e.$t("pricing.title"),
|
|
1613
1613
|
onClose: t[0] || (t[0] = (h) => i.showDragWindow = !1)
|
|
1614
1614
|
}, {
|
|
1615
1615
|
default: u(() => [
|
|
1616
|
-
(
|
|
1617
|
-
h.type === "divider" ? (
|
|
1616
|
+
(l(!0), p(S, null, A(o.priceOptions, (h, b) => (l(), p(S, { key: b }, [
|
|
1617
|
+
h.type === "divider" ? (l(), p("div", ci)) : (l(), C(r, {
|
|
1618
1618
|
key: b,
|
|
1619
1619
|
label: h.label,
|
|
1620
1620
|
"info-tooltip": h.infoTooltip,
|
|
@@ -1626,7 +1626,7 @@ function ui(e, t, n, s, i, o) {
|
|
|
1626
1626
|
}, 8, ["offset", "title"])) : v("", !0)
|
|
1627
1627
|
]);
|
|
1628
1628
|
}
|
|
1629
|
-
const mi = /* @__PURE__ */
|
|
1629
|
+
const mi = /* @__PURE__ */ $(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb"]]), pi = {
|
|
1630
1630
|
i18nOptions: {
|
|
1631
1631
|
messages: {
|
|
1632
1632
|
en: {
|
|
@@ -1672,11 +1672,11 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1672
1672
|
Sortable: Nt,
|
|
1673
1673
|
Spinner: lt,
|
|
1674
1674
|
CAutocomplete: Gt,
|
|
1675
|
-
CDropdown:
|
|
1676
|
-
CDropdownItem:
|
|
1675
|
+
CDropdown: de,
|
|
1676
|
+
CDropdownItem: G
|
|
1677
1677
|
},
|
|
1678
1678
|
emits: ["input"],
|
|
1679
|
-
mixins: [
|
|
1679
|
+
mixins: [ae(["externalReferences", "clients", "articles"])],
|
|
1680
1680
|
data() {
|
|
1681
1681
|
return {
|
|
1682
1682
|
activeCrm: null,
|
|
@@ -1693,7 +1693,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1693
1693
|
};
|
|
1694
1694
|
},
|
|
1695
1695
|
computed: {
|
|
1696
|
-
...
|
|
1696
|
+
...H({
|
|
1697
1697
|
allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
|
|
1698
1698
|
}),
|
|
1699
1699
|
currExternalReferences() {
|
|
@@ -1739,7 +1739,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1739
1739
|
this.searchResults = [];
|
|
1740
1740
|
return;
|
|
1741
1741
|
}
|
|
1742
|
-
const { data: n } = await
|
|
1742
|
+
const { data: n } = await ie.search(this.activeCrm, {
|
|
1743
1743
|
query: e,
|
|
1744
1744
|
type: "deal"
|
|
1745
1745
|
});
|
|
@@ -1748,7 +1748,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1748
1748
|
this.isSearching = !1;
|
|
1749
1749
|
}
|
|
1750
1750
|
},
|
|
1751
|
-
search:
|
|
1751
|
+
search: ke(async function(t) {
|
|
1752
1752
|
await this._search(t);
|
|
1753
1753
|
}, 750),
|
|
1754
1754
|
useSearchResult(e) {
|
|
@@ -1773,7 +1773,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1773
1773
|
(r) => r.service === this.activeCrm && r.type === e
|
|
1774
1774
|
);
|
|
1775
1775
|
if (!t) return;
|
|
1776
|
-
const { service: n, type: s, typeId: i } = t, { data: o } = await
|
|
1776
|
+
const { service: n, type: s, typeId: i } = t, { data: o } = await ie.getExternalReferenceDetails(
|
|
1777
1777
|
n,
|
|
1778
1778
|
{ type: s, typeId: i }
|
|
1779
1779
|
);
|
|
@@ -1796,13 +1796,13 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1796
1796
|
},
|
|
1797
1797
|
async suggestClients() {
|
|
1798
1798
|
var i;
|
|
1799
|
-
const { service: e, type: t, typeId: n } = this.currentExternalDeal, { data: s } = await
|
|
1799
|
+
const { service: e, type: t, typeId: n } = this.currentExternalDeal, { data: s } = await ie.suggestClients(e, {
|
|
1800
1800
|
type: t,
|
|
1801
1801
|
typeId: n
|
|
1802
1802
|
});
|
|
1803
1803
|
if (Array.isArray(s) && s.length) {
|
|
1804
1804
|
const o = (i = this._document) == null ? void 0 : i.defaultAnswerMethod, r = s.map((g) => ({
|
|
1805
|
-
...
|
|
1805
|
+
...rt(),
|
|
1806
1806
|
...o && { answerMethod: o },
|
|
1807
1807
|
...g
|
|
1808
1808
|
}));
|
|
@@ -1810,7 +1810,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1810
1810
|
}
|
|
1811
1811
|
},
|
|
1812
1812
|
cloneArticle(e) {
|
|
1813
|
-
return
|
|
1813
|
+
return Se({
|
|
1814
1814
|
...e,
|
|
1815
1815
|
_uniqueId: void 0
|
|
1816
1816
|
});
|
|
@@ -1819,7 +1819,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1819
1819
|
var s, i;
|
|
1820
1820
|
const [t] = ((i = (s = this._document) == null ? void 0 : s.packageGroups) == null ? void 0 : i.packages) || [];
|
|
1821
1821
|
if (!(t != null && t.packageId)) return;
|
|
1822
|
-
const n =
|
|
1822
|
+
const n = Se({
|
|
1823
1823
|
...e,
|
|
1824
1824
|
_uniqueId: void 0,
|
|
1825
1825
|
packageId: t.packageId
|
|
@@ -1844,7 +1844,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1844
1844
|
}, Di = {
|
|
1845
1845
|
key: 0,
|
|
1846
1846
|
style: { opacity: "0.75", "font-size": "13px" }
|
|
1847
|
-
}, Si = { key: 2 },
|
|
1847
|
+
}, Si = { key: 2 }, Ii = ["textContent"], $i = { style: { "line-height": "1.5" } }, Fi = { style: { "font-weight": "500" } }, Li = {
|
|
1848
1848
|
class: "text-gray-600",
|
|
1849
1849
|
style: { "font-size": "14px" }
|
|
1850
1850
|
}, Vi = { key: 0 }, Bi = { style: { padding: `0 calc(0.5 * var(--rem)) calc(1 * var(--rem))
|
|
@@ -1864,9 +1864,9 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1864
1864
|
style: { "padding-top": "calc(1 * var(--rem))" }
|
|
1865
1865
|
};
|
|
1866
1866
|
function Gi(e, t, n, s, i, o) {
|
|
1867
|
-
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("Spinner"),
|
|
1868
|
-
return
|
|
1869
|
-
e.allAuthenticatedCRMs.length > 1 ? (
|
|
1867
|
+
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("Spinner"), k = m("CAutocomplete"), w = m("CIcon"), T = m("Sortable"), D = m("router-link"), y = se("tooltip");
|
|
1868
|
+
return l(), p("div", hi, [
|
|
1869
|
+
e.allAuthenticatedCRMs.length > 1 ? (l(), C(h, {
|
|
1870
1870
|
key: 0,
|
|
1871
1871
|
position: "is-bottom-left",
|
|
1872
1872
|
style: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }
|
|
@@ -1881,32 +1881,32 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1881
1881
|
})
|
|
1882
1882
|
]),
|
|
1883
1883
|
default: u(() => [
|
|
1884
|
-
(
|
|
1884
|
+
(l(!0), p(S, null, A(e.allAuthenticatedCRMs, (f) => (l(), C(g, {
|
|
1885
1885
|
key: f,
|
|
1886
1886
|
type: i.activeCrm === f ? "primary" : "secondary",
|
|
1887
1887
|
size: "small",
|
|
1888
1888
|
onClick: (x) => i.activeCrm = f
|
|
1889
1889
|
}, {
|
|
1890
1890
|
default: u(() => [
|
|
1891
|
-
|
|
1891
|
+
_(d(f.capitalize()), 1)
|
|
1892
1892
|
]),
|
|
1893
1893
|
_: 2
|
|
1894
1894
|
}, 1032, ["type", "onClick"]))), 128))
|
|
1895
1895
|
]),
|
|
1896
1896
|
_: 1
|
|
1897
1897
|
})) : v("", !0),
|
|
1898
|
-
i.isLoading && !i.dealDetails ? (
|
|
1898
|
+
i.isLoading && !i.dealDetails ? (l(), p("div", fi, [
|
|
1899
1899
|
c(b, {
|
|
1900
1900
|
size: "24",
|
|
1901
1901
|
color: "grey"
|
|
1902
1902
|
})
|
|
1903
|
-
])) : i.activeCrm ? (
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
i.typeDetails ? (
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1903
|
+
])) : i.activeCrm ? (l(), p(S, { key: 2 }, [
|
|
1904
|
+
a("div", gi, [
|
|
1905
|
+
a("div", yi, d(i.activeCrm.capitalize()), 1),
|
|
1906
|
+
i.typeDetails ? (l(), p("div", vi, [
|
|
1907
|
+
a("div", Ci, [
|
|
1908
|
+
a("div", bi, [
|
|
1909
|
+
a("div", {
|
|
1910
1910
|
textContent: d(
|
|
1911
1911
|
e.$t("referenceTo", {
|
|
1912
1912
|
crm: i.activeCrm.capitalize(),
|
|
@@ -1924,20 +1924,20 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1924
1924
|
onClick: t[0] || (t[0] = (f) => o.removeReference(i.typeDetails.type))
|
|
1925
1925
|
})
|
|
1926
1926
|
]),
|
|
1927
|
-
|
|
1927
|
+
a("div", {
|
|
1928
1928
|
class: "x-hint-name",
|
|
1929
1929
|
textContent: d(i.typeDetails.name || "")
|
|
1930
1930
|
}, null, 8, wi)
|
|
1931
1931
|
]),
|
|
1932
|
-
t[7] || (t[7] =
|
|
1932
|
+
t[7] || (t[7] = a("div", { class: "divider" }, null, -1))
|
|
1933
1933
|
])) : v("", !0),
|
|
1934
|
-
|
|
1935
|
-
t[8] || (t[8] =
|
|
1936
|
-
o.currentExternalDeal ? (
|
|
1937
|
-
|
|
1938
|
-
i.dealDetails ? (
|
|
1939
|
-
|
|
1940
|
-
(
|
|
1934
|
+
a("div", _i, d(e.$t("headerText", { crm: i.activeCrm.capitalize() })), 1),
|
|
1935
|
+
t[8] || (t[8] = a("div", { style: { height: "2em" } }, null, -1)),
|
|
1936
|
+
o.currentExternalDeal ? (l(), p(S, { key: 1 }, [
|
|
1937
|
+
a("div", xi, d(e.$t("connectedTo", { type: o.dealType })), 1),
|
|
1938
|
+
i.dealDetails ? (l(), p("div", Ti, [
|
|
1939
|
+
a("div", null, [
|
|
1940
|
+
(l(), C(j(i.dealDetails.externalUrl ? "a" : "span"), {
|
|
1941
1941
|
href: i.dealDetails.externalUrl || "#",
|
|
1942
1942
|
target: "_blank",
|
|
1943
1943
|
style: { "font-weight": "600" },
|
|
@@ -1945,12 +1945,12 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1945
1945
|
textContent: d(i.dealDetails.name)
|
|
1946
1946
|
}, null, 8, ["href", "textContent"]))
|
|
1947
1947
|
]),
|
|
1948
|
-
i.dealDetails.currency ? (
|
|
1948
|
+
i.dealDetails.currency ? (l(), p("div", Di, d(o.priceFormat(i.dealDetails.value, {
|
|
1949
1949
|
showZero: !1,
|
|
1950
1950
|
currency: i.dealDetails.currency
|
|
1951
1951
|
})), 1)) : v("", !0)
|
|
1952
1952
|
])) : v("", !0),
|
|
1953
|
-
|
|
1953
|
+
a("div", null, [
|
|
1954
1954
|
c(r, {
|
|
1955
1955
|
loading: i.isLoading,
|
|
1956
1956
|
size: "small",
|
|
@@ -1977,13 +1977,13 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1977
1977
|
textContent: d(e.$t("suggestClients"))
|
|
1978
1978
|
}, null, 8, ["textContent"])
|
|
1979
1979
|
])
|
|
1980
|
-
], 64)) : (
|
|
1981
|
-
|
|
1980
|
+
], 64)) : (l(), p("div", Si, [
|
|
1981
|
+
a("div", {
|
|
1982
1982
|
style: { padding: "0 4px 0.25em" },
|
|
1983
1983
|
class: "text-gray-600",
|
|
1984
1984
|
textContent: d(e.$t("linkToDoc", { type: o.dealType }))
|
|
1985
|
-
}, null, 8,
|
|
1986
|
-
c(
|
|
1985
|
+
}, null, 8, Ii),
|
|
1986
|
+
c(k, {
|
|
1987
1987
|
ref: "input",
|
|
1988
1988
|
modelValue: i.searchQuery,
|
|
1989
1989
|
"onUpdate:modelValue": t[4] || (t[4] = (f) => i.searchQuery = f),
|
|
@@ -1999,12 +1999,12 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1999
1999
|
onSelect: t[6] || (t[6] = (f) => o.useSearchResult(f))
|
|
2000
2000
|
}, {
|
|
2001
2001
|
default: u(({ option: f }) => [
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
f.value && f.currency ? (
|
|
2007
|
-
|
|
2002
|
+
a("div", $i, [
|
|
2003
|
+
a("div", Fi, d(f.name), 1),
|
|
2004
|
+
a("div", Li, [
|
|
2005
|
+
_(d(f.externalReference.type.capitalize()) + " " + d(f.externalReference.typeId) + " ", 1),
|
|
2006
|
+
f.value && f.currency ? (l(), p(S, { key: 0 }, [
|
|
2007
|
+
_(" · " + d(o.priceFormat(f.value, {
|
|
2008
2008
|
showZero: !1,
|
|
2009
2009
|
currency: f.currency
|
|
2010
2010
|
})), 1)
|
|
@@ -2013,17 +2013,17 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2013
2013
|
])
|
|
2014
2014
|
]),
|
|
2015
2015
|
empty: u(() => [
|
|
2016
|
-
|
|
2016
|
+
_(d(e.$t("_common:noResults")), 1)
|
|
2017
2017
|
]),
|
|
2018
2018
|
_: 1
|
|
2019
2019
|
}, 8, ["modelValue", "data", "loading", "placeholder"])
|
|
2020
2020
|
]))
|
|
2021
2021
|
]),
|
|
2022
|
-
o.showDealProducts ? (
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
N(c(
|
|
2022
|
+
o.showDealProducts ? (l(), p("div", Vi, [
|
|
2023
|
+
a("div", Bi, [
|
|
2024
|
+
a("div", Mi, [
|
|
2025
|
+
_(d(e.$t("productsTitle")) + " ", 1),
|
|
2026
|
+
N(c(w, {
|
|
2027
2027
|
type: "info",
|
|
2028
2028
|
size: "13"
|
|
2029
2029
|
}, null, 512), [
|
|
@@ -2033,7 +2033,7 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2033
2033
|
]
|
|
2034
2034
|
])
|
|
2035
2035
|
]),
|
|
2036
|
-
|
|
2036
|
+
a("div", {
|
|
2037
2037
|
class: "text-gray-600",
|
|
2038
2038
|
textContent: d(
|
|
2039
2039
|
e.$t("productsText", {
|
|
@@ -2043,7 +2043,7 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2043
2043
|
)
|
|
2044
2044
|
}, null, 8, Pi)
|
|
2045
2045
|
]),
|
|
2046
|
-
i.dealDetails.articles && i.dealDetails.articles.length ? (
|
|
2046
|
+
i.dealDetails.articles && i.dealDetails.articles.length ? (l(), C(T, {
|
|
2047
2047
|
key: 0,
|
|
2048
2048
|
"item-key": "_uniqueId",
|
|
2049
2049
|
list: i.dealDetails.articles,
|
|
@@ -2058,53 +2058,53 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2058
2058
|
style: { "min-height": "calc(3 * var(--rem))", padding: "0 calc(0.5 * var(--rem))" }
|
|
2059
2059
|
}, {
|
|
2060
2060
|
item: u(({ item: f }) => [
|
|
2061
|
-
|
|
2061
|
+
a("div", {
|
|
2062
2062
|
style: { 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" },
|
|
2063
2063
|
onClick: (x) => o.addArticle(f)
|
|
2064
2064
|
}, [
|
|
2065
|
-
|
|
2065
|
+
a("div", {
|
|
2066
2066
|
style: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" },
|
|
2067
2067
|
textContent: d(f.name)
|
|
2068
2068
|
}, null, 8, Ei),
|
|
2069
|
-
|
|
2070
|
-
|
|
2069
|
+
a("div", zi, [
|
|
2070
|
+
_(d(o.priceFormat(f.price || 0, {
|
|
2071
2071
|
showZero: !1,
|
|
2072
2072
|
currency: f.currency || "USD"
|
|
2073
2073
|
})) + " · " + d(f.quantity || 0) + "x ", 1),
|
|
2074
|
-
f.vat !== null ? (
|
|
2075
|
-
|
|
2074
|
+
f.vat !== null ? (l(), p(S, { key: 0 }, [
|
|
2075
|
+
_(" · " + d(e._document.$t("vat").capitalize()) + " " + d(f.vat) + "% ", 1)
|
|
2076
2076
|
], 64)) : v("", !0)
|
|
2077
2077
|
])
|
|
2078
2078
|
], 8, Ai)
|
|
2079
2079
|
]),
|
|
2080
2080
|
_: 1
|
|
2081
|
-
}, 8, ["list", "clone"])) : (
|
|
2082
|
-
c(
|
|
2081
|
+
}, 8, ["list", "clone"])) : (l(), p("div", Ri, [
|
|
2082
|
+
c(w, {
|
|
2083
2083
|
type: "info",
|
|
2084
2084
|
size: "13",
|
|
2085
2085
|
style: { margin: "1px 4px 0 0", "flex-shrink": "0" }
|
|
2086
2086
|
}),
|
|
2087
|
-
|
|
2087
|
+
a("div", {
|
|
2088
2088
|
textContent: d(e.$t("noProducts", { type: o.dealType }))
|
|
2089
2089
|
}, null, 8, Oi)
|
|
2090
2090
|
]))
|
|
2091
2091
|
])) : v("", !0)
|
|
2092
|
-
], 64)) : (
|
|
2093
|
-
c(
|
|
2092
|
+
], 64)) : (l(), p("div", Hi, [
|
|
2093
|
+
c(w, {
|
|
2094
2094
|
type: "info",
|
|
2095
2095
|
size: "16",
|
|
2096
2096
|
class: "text-primary-500",
|
|
2097
2097
|
style: { "padding-bottom": "5px" }
|
|
2098
2098
|
}),
|
|
2099
|
-
|
|
2100
|
-
|
|
2099
|
+
a("div", Ui, d(e.$t("noCrm")), 1),
|
|
2100
|
+
a("div", qi, [
|
|
2101
2101
|
c(D, {
|
|
2102
2102
|
to: { name: "settings" },
|
|
2103
2103
|
style: { "font-weight": "500" },
|
|
2104
2104
|
class: "text-primary-500"
|
|
2105
2105
|
}, {
|
|
2106
2106
|
default: u(() => [
|
|
2107
|
-
|
|
2107
|
+
_(d(e.$t("noCrmAction")), 1)
|
|
2108
2108
|
]),
|
|
2109
2109
|
_: 1
|
|
2110
2110
|
})
|
|
@@ -2112,7 +2112,7 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2112
2112
|
]))
|
|
2113
2113
|
]);
|
|
2114
2114
|
}
|
|
2115
|
-
const Ni = /* @__PURE__ */
|
|
2115
|
+
const Ni = /* @__PURE__ */ $(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3"]]), Wi = {
|
|
2116
2116
|
name: "FieldsModal",
|
|
2117
2117
|
i18nOptions: {
|
|
2118
2118
|
namespaces: "FieldsModal",
|
|
@@ -2146,7 +2146,7 @@ const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
|
|
|
2146
2146
|
}
|
|
2147
2147
|
},
|
|
2148
2148
|
components: {
|
|
2149
|
-
CField:
|
|
2149
|
+
CField: _e
|
|
2150
2150
|
},
|
|
2151
2151
|
emits: ["close"],
|
|
2152
2152
|
props: {
|
|
@@ -2169,7 +2169,7 @@ const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
|
|
|
2169
2169
|
},
|
|
2170
2170
|
setup() {
|
|
2171
2171
|
return {
|
|
2172
|
-
v$:
|
|
2172
|
+
v$: je()
|
|
2173
2173
|
};
|
|
2174
2174
|
},
|
|
2175
2175
|
data() {
|
|
@@ -2183,12 +2183,12 @@ const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
|
|
|
2183
2183
|
validations: {
|
|
2184
2184
|
form: {
|
|
2185
2185
|
label: {
|
|
2186
|
-
required:
|
|
2186
|
+
required: Fe,
|
|
2187
2187
|
isUniqueLabel(e) {
|
|
2188
2188
|
return this.fields.reduce((n, { id: s, label: i }) => i === e && s !== this.existingFieldId ? !1 : n, !0);
|
|
2189
2189
|
}
|
|
2190
2190
|
},
|
|
2191
|
-
value: { required:
|
|
2191
|
+
value: { required: Fe }
|
|
2192
2192
|
}
|
|
2193
2193
|
},
|
|
2194
2194
|
computed: {
|
|
@@ -2208,14 +2208,14 @@ const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
|
|
|
2208
2208
|
},
|
|
2209
2209
|
created() {
|
|
2210
2210
|
if (this.existingFieldId) {
|
|
2211
|
-
const e =
|
|
2211
|
+
const e = B(this.document, `fields.${this.existingFieldId}`);
|
|
2212
2212
|
e && (this.form = { ...this.form, ...e });
|
|
2213
2213
|
}
|
|
2214
2214
|
},
|
|
2215
2215
|
methods: {
|
|
2216
2216
|
submit() {
|
|
2217
2217
|
if (this.v$.$touch(), this.v$.$invalid) return;
|
|
2218
|
-
const e = this.existingFieldId ||
|
|
2218
|
+
const e = this.existingFieldId || dt();
|
|
2219
2219
|
this.set({
|
|
2220
2220
|
key: `data.fields.${e}`,
|
|
2221
2221
|
value: {
|
|
@@ -2236,15 +2236,15 @@ const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
|
|
|
2236
2236
|
}, Zi = { style: { "padding-bottom": "2em" } }, Ki = { style: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, Qi = { style: { "margin-bottom": "0.25em", opacity: "0.65" } };
|
|
2237
2237
|
function Yi(e, t, n, s, i, o) {
|
|
2238
2238
|
const r = m("CInput"), g = m("CField"), h = m("CButton");
|
|
2239
|
-
return
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2239
|
+
return l(), p("div", ji, [
|
|
2240
|
+
a("div", Zi, [
|
|
2241
|
+
a("div", Ki, d(n.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")), 1),
|
|
2242
|
+
a("div", Qi, d(e.$t("description")), 1)
|
|
2243
2243
|
]),
|
|
2244
|
-
|
|
2244
|
+
a("form", {
|
|
2245
2245
|
style: { width: "100%" },
|
|
2246
|
-
onSubmit: t[2] || (t[2] =
|
|
2247
|
-
onKeyup: t[3] || (t[3] =
|
|
2246
|
+
onSubmit: t[2] || (t[2] = Z((...b) => o.submit && o.submit(...b), ["prevent"])),
|
|
2247
|
+
onKeyup: t[3] || (t[3] = ct((...b) => o.submit && o.submit(...b), ["enter"]))
|
|
2248
2248
|
}, [
|
|
2249
2249
|
c(g, {
|
|
2250
2250
|
label: e.$t("label"),
|
|
@@ -2287,7 +2287,7 @@ function Yi(e, t, n, s, i, o) {
|
|
|
2287
2287
|
onClick: o.submit,
|
|
2288
2288
|
textContent: d(e.$t("_common:save"))
|
|
2289
2289
|
}, null, 8, ["onClick", "textContent"]),
|
|
2290
|
-
n.existingFieldId ? (
|
|
2290
|
+
n.existingFieldId ? (l(), C(h, {
|
|
2291
2291
|
key: 0,
|
|
2292
2292
|
style: { "margin-top": "5px" },
|
|
2293
2293
|
type: "none",
|
|
@@ -2299,7 +2299,7 @@ function Yi(e, t, n, s, i, o) {
|
|
|
2299
2299
|
], 32)
|
|
2300
2300
|
]);
|
|
2301
2301
|
}
|
|
2302
|
-
const Ji = /* @__PURE__ */
|
|
2302
|
+
const Ji = /* @__PURE__ */ $(Wi, [["render", Yi]]), Xi = {
|
|
2303
2303
|
i18nOptions: {
|
|
2304
2304
|
namespaces: "DocumentFormFields",
|
|
2305
2305
|
messages: {
|
|
@@ -2325,9 +2325,9 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
|
|
|
2325
2325
|
components: {
|
|
2326
2326
|
SmartList: Zt,
|
|
2327
2327
|
CAccordion: Wt,
|
|
2328
|
-
CField:
|
|
2328
|
+
CField: _e
|
|
2329
2329
|
},
|
|
2330
|
-
mixins: [
|
|
2330
|
+
mixins: [ae()],
|
|
2331
2331
|
props: {
|
|
2332
2332
|
set: {
|
|
2333
2333
|
type: Function,
|
|
@@ -2381,7 +2381,7 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
|
|
|
2381
2381
|
async handler(e) {
|
|
2382
2382
|
var t, n;
|
|
2383
2383
|
if (this.isEditingTemplate && e) {
|
|
2384
|
-
const { data: s } = await
|
|
2384
|
+
const { data: s } = await ie.getFields(e);
|
|
2385
2385
|
this.updateValue("data.fields", {
|
|
2386
2386
|
// crmFields added first in order to not override same service values
|
|
2387
2387
|
...s,
|
|
@@ -2420,7 +2420,7 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
|
|
|
2420
2420
|
);
|
|
2421
2421
|
},
|
|
2422
2422
|
onCopyField(e) {
|
|
2423
|
-
navigator && navigator.clipboard && e && navigator.clipboard.writeText(e).then(() =>
|
|
2423
|
+
navigator && navigator.clipboard && e && navigator.clipboard.writeText(e).then(() => we("info", this.$t("_common:copyMessage"))).catch((t) => re(t));
|
|
2424
2424
|
},
|
|
2425
2425
|
filterMethod(e, t) {
|
|
2426
2426
|
return t.filter(
|
|
@@ -2438,7 +2438,7 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
|
|
|
2438
2438
|
}, so = {
|
|
2439
2439
|
class: "field-container",
|
|
2440
2440
|
style: { position: "relative", flex: "1 1 auto" }
|
|
2441
|
-
},
|
|
2441
|
+
}, ao = ["onDragstart", "textContent"], lo = { class: "field-actions" }, ro = {
|
|
2442
2442
|
key: 1,
|
|
2443
2443
|
style: { "text-align": "center" }
|
|
2444
2444
|
}, co = {
|
|
@@ -2452,50 +2452,50 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
|
|
|
2452
2452
|
style: { position: "relative", flex: "1 1 auto" }
|
|
2453
2453
|
}, vo = ["onDragstart", "textContent"], Co = { class: "field-actions" };
|
|
2454
2454
|
function bo(e, t, n, s, i, o) {
|
|
2455
|
-
const r = m("CInput"), g = m("CField"), h = m("CButton"), b = m("SmartList"),
|
|
2456
|
-
return
|
|
2457
|
-
|
|
2458
|
-
|
|
2455
|
+
const r = m("CInput"), g = m("CField"), h = m("CButton"), b = m("SmartList"), k = m("CIcon"), w = m("CAccordion");
|
|
2456
|
+
return l(), p("div", eo, [
|
|
2457
|
+
a("div", to, [
|
|
2458
|
+
a("div", {
|
|
2459
2459
|
style: { "font-size": "16px", "font-weight": "600" },
|
|
2460
2460
|
textContent: d(e.$t("title"))
|
|
2461
2461
|
}, null, 8, no),
|
|
2462
|
-
|
|
2462
|
+
a("div", {
|
|
2463
2463
|
style: { color: "hsl(0, 0%, 35%)" },
|
|
2464
2464
|
textContent: d(e.$t("description"))
|
|
2465
2465
|
}, null, 8, io)
|
|
2466
2466
|
]),
|
|
2467
2467
|
c(r, {
|
|
2468
2468
|
modelValue: i.query,
|
|
2469
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2469
|
+
"onUpdate:modelValue": t[0] || (t[0] = (T) => i.query = T),
|
|
2470
2470
|
placeholder: e.$t("_common:search"),
|
|
2471
2471
|
filled: "",
|
|
2472
2472
|
size: "small"
|
|
2473
2473
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2474
|
-
i.query ? (
|
|
2474
|
+
i.query ? (l(), p("div", oo, [
|
|
2475
2475
|
c(b, {
|
|
2476
2476
|
items: o.options,
|
|
2477
2477
|
"filter-method": o.filterMethod,
|
|
2478
2478
|
query: i.query
|
|
2479
2479
|
}, {
|
|
2480
|
-
default: u(({ items:
|
|
2481
|
-
|
|
2482
|
-
|
|
2480
|
+
default: u(({ items: T }) => [
|
|
2481
|
+
a("div", null, [
|
|
2482
|
+
T.length ? (l(!0), p(S, { key: 0 }, A(T, (D, y) => (l(), p("div", {
|
|
2483
2483
|
key: y,
|
|
2484
2484
|
class: "field-parent flex w-full items-center"
|
|
2485
2485
|
}, [
|
|
2486
|
-
|
|
2486
|
+
a("div", so, [
|
|
2487
2487
|
c(g, {
|
|
2488
2488
|
label: " ",
|
|
2489
2489
|
"label-position": "inside",
|
|
2490
2490
|
style: { width: "100%" }
|
|
2491
2491
|
}, {
|
|
2492
2492
|
default: u(() => [
|
|
2493
|
-
|
|
2493
|
+
a("span", {
|
|
2494
2494
|
class: "drag-label",
|
|
2495
2495
|
draggable: !0,
|
|
2496
2496
|
onDragstart: (f) => o.onDragStart(f, D),
|
|
2497
2497
|
textContent: d(D.label)
|
|
2498
|
-
}, null, 40,
|
|
2498
|
+
}, null, 40, ao),
|
|
2499
2499
|
c(r, {
|
|
2500
2500
|
"model-value": D.value,
|
|
2501
2501
|
disabled: D.inputDisabled,
|
|
@@ -2510,8 +2510,8 @@ function bo(e, t, n, s, i, o) {
|
|
|
2510
2510
|
]),
|
|
2511
2511
|
_: 2
|
|
2512
2512
|
}, 1024),
|
|
2513
|
-
|
|
2514
|
-
!D.inputDisabled && !D.virtual ? (
|
|
2513
|
+
a("div", lo, [
|
|
2514
|
+
!D.inputDisabled && !D.virtual ? (l(), C(h, {
|
|
2515
2515
|
key: 0,
|
|
2516
2516
|
icon: "edit",
|
|
2517
2517
|
size: "small",
|
|
@@ -2530,13 +2530,13 @@ function bo(e, t, n, s, i, o) {
|
|
|
2530
2530
|
}, null, 8, ["onClick"])
|
|
2531
2531
|
])
|
|
2532
2532
|
])
|
|
2533
|
-
]))), 128)) : (
|
|
2533
|
+
]))), 128)) : (l(), p("div", ro, d(e.$t("_common:noResults")), 1))
|
|
2534
2534
|
])
|
|
2535
2535
|
]),
|
|
2536
2536
|
_: 1
|
|
2537
2537
|
}, 8, ["items", "filter-method", "query"])
|
|
2538
|
-
])) : (
|
|
2539
|
-
|
|
2538
|
+
])) : (l(), p("div", co, [
|
|
2539
|
+
a("div", uo, [
|
|
2540
2540
|
c(h, {
|
|
2541
2541
|
type: "none",
|
|
2542
2542
|
pattern: "secondary",
|
|
@@ -2546,7 +2546,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2546
2546
|
textContent: d(e.$t("_common:add", { thing: e.$t("_common:field") }))
|
|
2547
2547
|
}, null, 8, ["onClick", "textContent"])
|
|
2548
2548
|
]),
|
|
2549
|
-
(
|
|
2549
|
+
(l(!0), p(S, null, A([
|
|
2550
2550
|
{
|
|
2551
2551
|
label: e.$t("usedFields"),
|
|
2552
2552
|
defaultOpen: !0,
|
|
@@ -2564,43 +2564,43 @@ function bo(e, t, n, s, i, o) {
|
|
|
2564
2564
|
defaultOpen: !o.usedFields.length,
|
|
2565
2565
|
items: o.unUsedFields
|
|
2566
2566
|
}
|
|
2567
|
-
], (
|
|
2567
|
+
], (T, D) => (l(), C(w, {
|
|
2568
2568
|
key: D,
|
|
2569
|
-
"default-open":
|
|
2569
|
+
"default-open": T.defaultOpen,
|
|
2570
2570
|
style: { "border-top": "1px solid hsl(0, 0%, 88%)" }
|
|
2571
2571
|
}, {
|
|
2572
2572
|
trigger: u(({ expanded: y }) => [
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
textContent: d(
|
|
2573
|
+
a("div", mo, [
|
|
2574
|
+
a("span", null, [
|
|
2575
|
+
a("span", {
|
|
2576
|
+
textContent: d(T.label)
|
|
2577
2577
|
}, null, 8, po),
|
|
2578
|
-
|
|
2578
|
+
a("span", {
|
|
2579
2579
|
style: { opacity: "0.45", "padding-left": "0.5em" },
|
|
2580
|
-
textContent: d(
|
|
2580
|
+
textContent: d(T.items.length)
|
|
2581
2581
|
}, null, 8, ho)
|
|
2582
2582
|
]),
|
|
2583
|
-
c(
|
|
2584
|
-
style:
|
|
2583
|
+
c(k, {
|
|
2584
|
+
style: R([{ transform: `rotate(${y ? "180deg" : "0deg"})` }, { transition: "200ms" }]),
|
|
2585
2585
|
type: "chevron-down",
|
|
2586
2586
|
size: "15"
|
|
2587
2587
|
}, null, 8, ["style"])
|
|
2588
2588
|
])
|
|
2589
2589
|
]),
|
|
2590
2590
|
default: u(() => [
|
|
2591
|
-
|
|
2592
|
-
|
|
2591
|
+
a("div", fo, [
|
|
2592
|
+
T.items.length ? (l(!0), p(S, { key: 1 }, A(T.items, (y, f) => (l(), p("div", {
|
|
2593
2593
|
key: f,
|
|
2594
2594
|
class: "field-parent flex w-full items-center"
|
|
2595
2595
|
}, [
|
|
2596
|
-
|
|
2596
|
+
a("div", yo, [
|
|
2597
2597
|
c(g, {
|
|
2598
2598
|
label: " ",
|
|
2599
2599
|
"label-position": "inside",
|
|
2600
2600
|
style: { width: "100%" }
|
|
2601
2601
|
}, {
|
|
2602
2602
|
default: u(() => [
|
|
2603
|
-
|
|
2603
|
+
a("span", {
|
|
2604
2604
|
class: "drag-label",
|
|
2605
2605
|
draggable: !0,
|
|
2606
2606
|
onDragstart: (x) => o.onDragStart(x, y),
|
|
@@ -2613,15 +2613,15 @@ function bo(e, t, n, s, i, o) {
|
|
|
2613
2613
|
size: "small",
|
|
2614
2614
|
style: { width: "100%" },
|
|
2615
2615
|
onBlur: (x) => {
|
|
2616
|
-
var
|
|
2617
|
-
return y.onInput(((
|
|
2616
|
+
var I;
|
|
2617
|
+
return y.onInput(((I = x == null ? void 0 : x.target) == null ? void 0 : I.value) || "");
|
|
2618
2618
|
}
|
|
2619
2619
|
}, null, 8, ["model-value", "disabled", "onBlur"])
|
|
2620
2620
|
]),
|
|
2621
2621
|
_: 2
|
|
2622
2622
|
}, 1024),
|
|
2623
|
-
|
|
2624
|
-
!y.inputDisabled && !y.virtual ? (
|
|
2623
|
+
a("div", Co, [
|
|
2624
|
+
!y.inputDisabled && !y.virtual ? (l(), C(h, {
|
|
2625
2625
|
key: 0,
|
|
2626
2626
|
icon: "edit",
|
|
2627
2627
|
size: "small",
|
|
@@ -2640,7 +2640,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2640
2640
|
}, null, 8, ["onClick"])
|
|
2641
2641
|
])
|
|
2642
2642
|
])
|
|
2643
|
-
]))), 128)) : (
|
|
2643
|
+
]))), 128)) : (l(), p("div", {
|
|
2644
2644
|
key: 0,
|
|
2645
2645
|
style: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" },
|
|
2646
2646
|
textContent: d(e.$t("noResults"))
|
|
@@ -2652,7 +2652,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2652
2652
|
]))
|
|
2653
2653
|
]);
|
|
2654
2654
|
}
|
|
2655
|
-
const ko = /* @__PURE__ */
|
|
2655
|
+
const ko = /* @__PURE__ */ $(Xi, [["render", bo], ["__scopeId", "data-v-454d81b5"]]), wo = {
|
|
2656
2656
|
name: "MenuBlockConvertPopover",
|
|
2657
2657
|
emits: ["close", "convert"],
|
|
2658
2658
|
props: {
|
|
@@ -2691,12 +2691,12 @@ const ko = /* @__PURE__ */ F(Xi, [["render", bo], ["__scopeId", "data-v-454d81b5
|
|
|
2691
2691
|
}, xo = ["innerHTML"];
|
|
2692
2692
|
function To(e, t, n, s, i, o) {
|
|
2693
2693
|
const r = m("CButton");
|
|
2694
|
-
return
|
|
2695
|
-
|
|
2694
|
+
return l(), p("div", null, [
|
|
2695
|
+
a("div", {
|
|
2696
2696
|
class: "fixed inset-0 z-10",
|
|
2697
|
-
onClick: t[0] || (t[0] =
|
|
2697
|
+
onClick: t[0] || (t[0] = Z((g) => e.$emit("close"), ["self"]))
|
|
2698
2698
|
}),
|
|
2699
|
-
c(
|
|
2699
|
+
c(oe, {
|
|
2700
2700
|
appear: "",
|
|
2701
2701
|
mode: "out-in",
|
|
2702
2702
|
"enter-active-class": "transition-all duration-100 ease-out",
|
|
@@ -2707,8 +2707,8 @@ function To(e, t, n, s, i, o) {
|
|
|
2707
2707
|
"leave-to-class": "opacity-0"
|
|
2708
2708
|
}, {
|
|
2709
2709
|
default: u(() => [
|
|
2710
|
-
|
|
2711
|
-
|
|
2710
|
+
a("div", _o, [
|
|
2711
|
+
a("div", {
|
|
2712
2712
|
class: "pb-4",
|
|
2713
2713
|
innerHTML: e.$t("text")
|
|
2714
2714
|
}, null, 8, xo),
|
|
@@ -2719,7 +2719,7 @@ function To(e, t, n, s, i, o) {
|
|
|
2719
2719
|
onClick: t[1] || (t[1] = (g) => e.$emit("convert"))
|
|
2720
2720
|
}, {
|
|
2721
2721
|
default: u(() => [
|
|
2722
|
-
|
|
2722
|
+
_(d(e.$t("button")), 1)
|
|
2723
2723
|
]),
|
|
2724
2724
|
_: 1
|
|
2725
2725
|
})
|
|
@@ -2729,7 +2729,7 @@ function To(e, t, n, s, i, o) {
|
|
|
2729
2729
|
})
|
|
2730
2730
|
]);
|
|
2731
2731
|
}
|
|
2732
|
-
const Do = /* @__PURE__ */
|
|
2732
|
+
const Do = /* @__PURE__ */ $(wo, [["render", To]]), So = {
|
|
2733
2733
|
name: "MenuBlocks",
|
|
2734
2734
|
i18nOptions: {
|
|
2735
2735
|
namespaces: "menuBlocks",
|
|
@@ -2799,14 +2799,14 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
|
|
|
2799
2799
|
}
|
|
2800
2800
|
},
|
|
2801
2801
|
components: {
|
|
2802
|
-
Simplebar:
|
|
2802
|
+
Simplebar: X,
|
|
2803
2803
|
DragList: Ee,
|
|
2804
2804
|
DragItem: ze,
|
|
2805
|
-
IsPremiumPreStep:
|
|
2806
|
-
ProBadge:
|
|
2805
|
+
IsPremiumPreStep: ee,
|
|
2806
|
+
ProBadge: We,
|
|
2807
2807
|
MenuBlockConvertPopover: Do
|
|
2808
2808
|
},
|
|
2809
|
-
mixins: [
|
|
2809
|
+
mixins: [Y],
|
|
2810
2810
|
inject: {
|
|
2811
2811
|
viewSettings: {
|
|
2812
2812
|
default: () => ({ isPublicForm: !1 })
|
|
@@ -2836,7 +2836,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
|
|
|
2836
2836
|
},
|
|
2837
2837
|
emits: ["block-added"],
|
|
2838
2838
|
setup(e) {
|
|
2839
|
-
const { addBlock: t, getBlockPayload: n } =
|
|
2839
|
+
const { addBlock: t, getBlockPayload: n } = Ne({
|
|
2840
2840
|
setter: e.set
|
|
2841
2841
|
});
|
|
2842
2842
|
return { addBlock: t, getBlockPayload: n };
|
|
@@ -3000,7 +3000,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
|
|
|
3000
3000
|
};
|
|
3001
3001
|
},
|
|
3002
3002
|
computed: {
|
|
3003
|
-
...
|
|
3003
|
+
...H({
|
|
3004
3004
|
allAuthenticatedCRMs: "settings/allAuthenticatedCRMs",
|
|
3005
3005
|
feature: "application/feature"
|
|
3006
3006
|
}),
|
|
@@ -3135,7 +3135,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
|
|
|
3135
3135
|
);
|
|
3136
3136
|
},
|
|
3137
3137
|
activeSubMenuKey() {
|
|
3138
|
-
return
|
|
3138
|
+
return B(this.activeSubMenu, "[0].key") || null;
|
|
3139
3139
|
}
|
|
3140
3140
|
// section key is added to each element in the menu
|
|
3141
3141
|
},
|
|
@@ -3195,7 +3195,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
|
|
|
3195
3195
|
e.destroy();
|
|
3196
3196
|
}) : this.tippyInstances.destroy && this.tippyInstances.destroy());
|
|
3197
3197
|
},
|
|
3198
|
-
setSubMenuState:
|
|
3198
|
+
setSubMenuState: ke(
|
|
3199
3199
|
function(t) {
|
|
3200
3200
|
this.activeSubMenu = t;
|
|
3201
3201
|
},
|
|
@@ -3214,7 +3214,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
|
|
|
3214
3214
|
return !this.feature(`docBlock_${e}`) && !((t = this.viewSettings) != null && t.isPublicForm);
|
|
3215
3215
|
},
|
|
3216
3216
|
doesBlockExist(e) {
|
|
3217
|
-
return !!
|
|
3217
|
+
return !!B(this._document, "_doc.template.views.read.nodes", []).find((n) => n.itemId.startsWith(e));
|
|
3218
3218
|
},
|
|
3219
3219
|
getGhostParent() {
|
|
3220
3220
|
var n, s;
|
|
@@ -3237,7 +3237,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
|
|
|
3237
3237
|
};
|
|
3238
3238
|
}
|
|
3239
3239
|
}
|
|
3240
|
-
},
|
|
3240
|
+
}, Io = { class: "menu-container" }, $o = {
|
|
3241
3241
|
key: 0,
|
|
3242
3242
|
style: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(1 * var(--rem))" }
|
|
3243
3243
|
}, Fo = ["onMouseoverPassive"], Lo = {
|
|
@@ -3248,27 +3248,27 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
|
|
|
3248
3248
|
style: { width: "initial", flex: "1 1 auto" }
|
|
3249
3249
|
}, Bo = ["innerHTML"], Mo = { class: "option-title" }, Po = { class: "relative" }, Ao = ["onClick", "innerHTML"];
|
|
3250
3250
|
function Eo(e, t, n, s, i, o) {
|
|
3251
|
-
const r = m("MenuBlockConvertPopover"), g = m("ProBadge"), h = m("CIcon"), b = m("CButton"),
|
|
3252
|
-
return
|
|
3251
|
+
const r = m("MenuBlockConvertPopover"), g = m("ProBadge"), h = m("CIcon"), b = m("CButton"), k = m("DragItem"), w = m("DragList"), T = m("Simplebar"), D = m("IsPremiumPreStep");
|
|
3252
|
+
return l(), p("div", {
|
|
3253
3253
|
onMouseleavePassive: t[4] || (t[4] = (...y) => o.onMouseleaveDrawer && o.onMouseleaveDrawer(...y))
|
|
3254
3254
|
}, [
|
|
3255
3255
|
c(D, { feature: "documentBlocks" }, {
|
|
3256
3256
|
default: u(({ onClick: y }) => [
|
|
3257
|
-
!n.canUseBlocks && i.showConvertEditableDialog ? (
|
|
3257
|
+
!n.canUseBlocks && i.showConvertEditableDialog ? (l(), C(r, {
|
|
3258
3258
|
key: 0,
|
|
3259
3259
|
target: i.showConvertEditableDialogTarget,
|
|
3260
3260
|
onConvert: o.deSyncTemplate,
|
|
3261
3261
|
onClose: t[0] || (t[0] = (f) => i.showConvertEditableDialog = !1)
|
|
3262
3262
|
}, null, 8, ["target", "onConvert"])) : v("", !0),
|
|
3263
|
-
|
|
3264
|
-
(
|
|
3263
|
+
a("div", Io, [
|
|
3264
|
+
(l(!0), p(S, null, A([
|
|
3265
3265
|
{ data: o.primaryBlocks },
|
|
3266
3266
|
{ data: o.secondaryBlocks }
|
|
3267
|
-
], (f, x) => (
|
|
3268
|
-
x > 0 ? (
|
|
3269
|
-
c(
|
|
3267
|
+
], (f, x) => (l(), p("div", { key: x }, [
|
|
3268
|
+
x > 0 ? (l(), p("div", $o)) : v("", !0),
|
|
3269
|
+
c(w, {
|
|
3270
3270
|
group: { name: "blocks", pull: "clone", put: !1 },
|
|
3271
|
-
"get-child-payload": (
|
|
3271
|
+
"get-child-payload": (I) => s.getBlockPayload(o.getSectionKey({ data: f.data, index: I })),
|
|
3272
3272
|
"drop-placeholder": {
|
|
3273
3273
|
className: "drag-drop-menu-placeholder"
|
|
3274
3274
|
},
|
|
@@ -3280,44 +3280,44 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3280
3280
|
behaviour: "copy"
|
|
3281
3281
|
}, {
|
|
3282
3282
|
default: u(() => [
|
|
3283
|
-
(
|
|
3284
|
-
key:
|
|
3283
|
+
(l(!0), p(S, null, A(f.data, (I) => (l(), C(k, {
|
|
3284
|
+
key: I.key,
|
|
3285
3285
|
class: L({ "drag-item": o.canDrag })
|
|
3286
3286
|
}, {
|
|
3287
3287
|
default: u(() => [
|
|
3288
|
-
|
|
3288
|
+
a("div", be(
|
|
3289
3289
|
{ ref_for: !0 },
|
|
3290
|
-
|
|
3290
|
+
I.hasTooltip ? { "data-tooltip-key": I.key } : null,
|
|
3291
3291
|
{
|
|
3292
3292
|
class: {
|
|
3293
|
-
"no-drag":
|
|
3293
|
+
"no-drag": I.disabled || I.locked || !n.canUseBlocks
|
|
3294
3294
|
},
|
|
3295
|
-
onMouseoverPassive: (
|
|
3296
|
-
onMouseleavePassive: t[1] || (t[1] = (
|
|
3295
|
+
onMouseoverPassive: (F) => i.subMenuToShow = !I.disabled && o.canDrag && I.subMenu || null,
|
|
3296
|
+
onMouseleavePassive: t[1] || (t[1] = (F) => i.subMenuToShow = null)
|
|
3297
3297
|
}
|
|
3298
3298
|
), [
|
|
3299
3299
|
c(b, {
|
|
3300
3300
|
ref_for: !0,
|
|
3301
3301
|
ref: "blockItem",
|
|
3302
|
-
disabled:
|
|
3302
|
+
disabled: I.disabled,
|
|
3303
3303
|
class: L([{
|
|
3304
|
-
"sub-menu-active":
|
|
3304
|
+
"sub-menu-active": I.key === o.activeSubMenuKey
|
|
3305
3305
|
}, "option-row is-thinner is-left"]),
|
|
3306
3306
|
wide: "",
|
|
3307
3307
|
pattern: "secondary",
|
|
3308
3308
|
style: { "padding-left": "1.5em", "padding-right": "2em", "border-radius": "0", "font-size": "14px", "border-color": "transparent" },
|
|
3309
|
-
onClick: (
|
|
3309
|
+
onClick: (F) => o.onUseBlock({ block: I, openUpgradeModal: y })
|
|
3310
3310
|
}, {
|
|
3311
3311
|
default: u(() => [
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3312
|
+
a("div", Lo, [
|
|
3313
|
+
a("div", Vo, [
|
|
3314
|
+
a("div", {
|
|
3315
3315
|
class: "option-image",
|
|
3316
|
-
innerHTML:
|
|
3316
|
+
innerHTML: I.icon
|
|
3317
3317
|
}, null, 8, Bo),
|
|
3318
|
-
|
|
3318
|
+
a("div", Mo, d(e.$t(`blocks.${I.key}`)), 1)
|
|
3319
3319
|
]),
|
|
3320
|
-
|
|
3320
|
+
I.locked ? (l(), C(g, { key: 0 })) : !n.fixed && I.subMenu ? (l(), C(h, {
|
|
3321
3321
|
key: 1,
|
|
3322
3322
|
type: "chevron-right",
|
|
3323
3323
|
size: "14",
|
|
@@ -3335,21 +3335,21 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3335
3335
|
_: 2
|
|
3336
3336
|
}, 1032, ["get-child-payload", "get-ghost-parent"])
|
|
3337
3337
|
]))), 128)),
|
|
3338
|
-
|
|
3338
|
+
P(e.$slots, "footer", {}, void 0, !0)
|
|
3339
3339
|
]),
|
|
3340
|
-
c(
|
|
3340
|
+
c(oe, { name: "slide-right" }, {
|
|
3341
3341
|
default: u(() => [
|
|
3342
|
-
N(
|
|
3342
|
+
N(a("div", {
|
|
3343
3343
|
class: "submenu",
|
|
3344
3344
|
onMouseoverPassive: t[2] || (t[2] = (f) => i.subMenuToShow = i.activeSubMenu),
|
|
3345
3345
|
onMouseleavePassive: t[3] || (t[3] = (f) => i.subMenuToShow = null)
|
|
3346
3346
|
}, [
|
|
3347
|
-
c(
|
|
3347
|
+
c(T, {
|
|
3348
3348
|
class: "h-full py-4 pl-3",
|
|
3349
3349
|
"data-simplebar-auto-hide": "false"
|
|
3350
3350
|
}, {
|
|
3351
3351
|
default: u(() => [
|
|
3352
|
-
c(
|
|
3352
|
+
c(w, {
|
|
3353
3353
|
group: { name: "blocks", pull: "clone", put: !1 },
|
|
3354
3354
|
"get-child-payload": (f) => o.getSubMenuPayload({ index: f, getBlockPayload: s.getBlockPayload }),
|
|
3355
3355
|
"drop-placeholder": { className: "drag-drop-menu-placeholder" },
|
|
@@ -3361,18 +3361,18 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3361
3361
|
behaviour: "copy"
|
|
3362
3362
|
}, {
|
|
3363
3363
|
default: u(() => [
|
|
3364
|
-
(
|
|
3364
|
+
(l(!0), p(S, null, A(i.activeSubMenu, (f, x) => (l(), C(k, {
|
|
3365
3365
|
key: f.key + x,
|
|
3366
3366
|
class: L(["px-1.5", { "drag-item": !f.locked && n.canUseBlocks }])
|
|
3367
3367
|
}, {
|
|
3368
3368
|
default: u(() => [
|
|
3369
|
-
|
|
3370
|
-
|
|
3369
|
+
a("div", Po, [
|
|
3370
|
+
a("div", {
|
|
3371
3371
|
class: "drag-item-preview",
|
|
3372
|
-
onClick: (
|
|
3372
|
+
onClick: (I) => o.onUseBlock({ block: f, openUpgradeModal: y }),
|
|
3373
3373
|
innerHTML: f.previewUrl
|
|
3374
3374
|
}, null, 8, Ao),
|
|
3375
|
-
f.locked ? (
|
|
3375
|
+
f.locked ? (l(), C(g, {
|
|
3376
3376
|
key: 0,
|
|
3377
3377
|
class: "absolute bottom-2 right-4"
|
|
3378
3378
|
})) : v("", !0)
|
|
@@ -3387,7 +3387,7 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3387
3387
|
_: 2
|
|
3388
3388
|
}, 1024)
|
|
3389
3389
|
], 544), [
|
|
3390
|
-
[
|
|
3390
|
+
[ve, i.activeSubMenu]
|
|
3391
3391
|
])
|
|
3392
3392
|
]),
|
|
3393
3393
|
_: 2
|
|
@@ -3397,7 +3397,7 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3397
3397
|
})
|
|
3398
3398
|
], 32);
|
|
3399
3399
|
}
|
|
3400
|
-
const zo = /* @__PURE__ */
|
|
3400
|
+
const zo = /* @__PURE__ */ $(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0"]]), Ro = {
|
|
3401
3401
|
name: "DocumentFormMenu",
|
|
3402
3402
|
i18nOptions: {
|
|
3403
3403
|
namespaces: "documentFormMenu",
|
|
@@ -3413,15 +3413,15 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
|
|
|
3413
3413
|
}
|
|
3414
3414
|
},
|
|
3415
3415
|
components: {
|
|
3416
|
-
Design:
|
|
3416
|
+
Design: li,
|
|
3417
3417
|
Fields: ko,
|
|
3418
3418
|
ExtensionTab: Ni,
|
|
3419
3419
|
DocumentGeneralSettings: mi,
|
|
3420
|
-
DocumentGuide:
|
|
3421
|
-
() => import("./index-
|
|
3420
|
+
DocumentGuide: ut(
|
|
3421
|
+
() => import("./index-DXNrJnEc.js")
|
|
3422
3422
|
),
|
|
3423
3423
|
MenuBlocks: zo,
|
|
3424
|
-
Simplebar:
|
|
3424
|
+
Simplebar: X
|
|
3425
3425
|
},
|
|
3426
3426
|
emits: ["close"],
|
|
3427
3427
|
props: {
|
|
@@ -3457,12 +3457,12 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
|
|
|
3457
3457
|
data() {
|
|
3458
3458
|
return {
|
|
3459
3459
|
showGuide: !1,
|
|
3460
|
-
showGuideNotification: !
|
|
3460
|
+
showGuideNotification: !Ie.getItem("hideFormGuideNotification"),
|
|
3461
3461
|
tab: "blocks"
|
|
3462
3462
|
};
|
|
3463
3463
|
},
|
|
3464
3464
|
computed: {
|
|
3465
|
-
...
|
|
3465
|
+
...H({
|
|
3466
3466
|
allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
|
|
3467
3467
|
}),
|
|
3468
3468
|
extensionTabType() {
|
|
@@ -3479,7 +3479,7 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
|
|
|
3479
3479
|
},
|
|
3480
3480
|
methods: {
|
|
3481
3481
|
openGuide() {
|
|
3482
|
-
this.showGuide = !0, this.showGuideNotification = !1,
|
|
3482
|
+
this.showGuide = !0, this.showGuideNotification = !1, Ie.setItem("hideFormGuideNotification", !0);
|
|
3483
3483
|
}
|
|
3484
3484
|
}
|
|
3485
3485
|
}, Oo = {
|
|
@@ -3493,43 +3493,43 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
|
|
|
3493
3493
|
class: "menu-container"
|
|
3494
3494
|
};
|
|
3495
3495
|
function jo(e, t, n, s, i, o) {
|
|
3496
|
-
const r = m("CIcon"), g = m("CButton"), h = m("MenuBlocks"), b = m("Design"),
|
|
3497
|
-
return
|
|
3498
|
-
|
|
3499
|
-
style:
|
|
3496
|
+
const r = m("CIcon"), g = m("CButton"), h = m("MenuBlocks"), b = m("Design"), k = m("Fields"), w = m("ExtensionTab"), T = m("DocumentGeneralSettings"), D = m("Simplebar"), y = m("DocumentGuide");
|
|
3497
|
+
return l(), p("div", null, [
|
|
3498
|
+
a("div", {
|
|
3499
|
+
style: R([{ width: `${n.width}px` }, n.fixed && { zIndex: 999 }]),
|
|
3500
3500
|
class: "root menu-wrapper fixed left-0 top-14 z-[99] bg-white"
|
|
3501
3501
|
}, [
|
|
3502
|
-
n.fixed ? (
|
|
3502
|
+
n.fixed ? (l(), p("div", {
|
|
3503
3503
|
key: 0,
|
|
3504
3504
|
class: "fixed inset-0",
|
|
3505
3505
|
onClick: t[0] || (t[0] = (f) => e.$emit("close"))
|
|
3506
3506
|
})) : v("", !0),
|
|
3507
|
-
|
|
3508
|
-
style:
|
|
3507
|
+
a("div", {
|
|
3508
|
+
style: R([{ width: `${n.width}px` }, { height: "100%", "font-size": "14px", "border-radius": "0 8px 8px 0", "box-shadow": "0 10px 20px rgba(0, 0, 0, 0.2)" }])
|
|
3509
3509
|
}, [
|
|
3510
|
-
n.isLegacyTemplate ? v("", !0) : (
|
|
3511
|
-
|
|
3510
|
+
n.isLegacyTemplate ? v("", !0) : (l(), p("div", Oo, [
|
|
3511
|
+
a("div", {
|
|
3512
3512
|
class: L([{ "is-active": i.tab === "blocks" }, "tab-item"]),
|
|
3513
3513
|
onClick: t[1] || (t[1] = (f) => i.tab = "blocks"),
|
|
3514
3514
|
textContent: d(e.$t("tabs.blocks"))
|
|
3515
3515
|
}, null, 10, Ho),
|
|
3516
|
-
|
|
3516
|
+
a("div", {
|
|
3517
3517
|
class: L([{ "is-active": i.tab === "design" }, "tab-item"]),
|
|
3518
3518
|
onClick: t[2] || (t[2] = (f) => i.tab = "design"),
|
|
3519
3519
|
textContent: d(e.$t("tabs.design"))
|
|
3520
3520
|
}, null, 10, Uo),
|
|
3521
|
-
|
|
3521
|
+
a("div", {
|
|
3522
3522
|
class: L([{ "is-active": i.tab === "fields" }, "tab-item"]),
|
|
3523
3523
|
onClick: t[3] || (t[3] = (f) => i.tab = "fields"),
|
|
3524
3524
|
textContent: d(e.$t("tabs.fields"))
|
|
3525
3525
|
}, null, 10, qo),
|
|
3526
|
-
o.extensionTabType ? (
|
|
3526
|
+
o.extensionTabType ? (l(), p("div", {
|
|
3527
3527
|
key: 0,
|
|
3528
3528
|
class: L([{ "is-active": i.tab === "extension" }, "tab-item"]),
|
|
3529
3529
|
onClick: t[4] || (t[4] = (f) => i.tab = "extension")
|
|
3530
3530
|
}, [
|
|
3531
|
-
|
|
3532
|
-
style:
|
|
3531
|
+
a("div", {
|
|
3532
|
+
style: R([{ width: "18px", height: "18px", background: "#343434", "border-radius": "4px", display: "flex", "align-items": "center", "justify-content": "center", "margin-top": "2px" }, [
|
|
3533
3533
|
o.extensionTabType === "pipedrive" && {
|
|
3534
3534
|
backgroundColor: "#3A3A3A"
|
|
3535
3535
|
},
|
|
@@ -3545,7 +3545,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3545
3545
|
}, null, 8, ["type"])
|
|
3546
3546
|
], 4)
|
|
3547
3547
|
], 2)) : v("", !0),
|
|
3548
|
-
|
|
3548
|
+
a("div", {
|
|
3549
3549
|
class: L([{ "is-active": i.tab === "generalSettings" }, "tab-item ml-[2px]"]),
|
|
3550
3550
|
onClick: t[5] || (t[5] = (f) => i.tab = "generalSettings")
|
|
3551
3551
|
}, [
|
|
@@ -3556,7 +3556,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3556
3556
|
})
|
|
3557
3557
|
], 2)
|
|
3558
3558
|
])),
|
|
3559
|
-
i.tab === "blocks" ? (
|
|
3559
|
+
i.tab === "blocks" ? (l(), C(h, {
|
|
3560
3560
|
key: 1,
|
|
3561
3561
|
_document: n.state,
|
|
3562
3562
|
set: n.set,
|
|
@@ -3566,7 +3566,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3566
3566
|
onBlockAdded: t[6] || (t[6] = (f) => n.fixed ? e.$emit("close") : null)
|
|
3567
3567
|
}, {
|
|
3568
3568
|
footer: u(() => [
|
|
3569
|
-
|
|
3569
|
+
a("div", Go, [
|
|
3570
3570
|
c(g, {
|
|
3571
3571
|
"icon-left": "help",
|
|
3572
3572
|
type: "none",
|
|
@@ -3576,18 +3576,18 @@ function jo(e, t, n, s, i, o) {
|
|
|
3576
3576
|
onClick: o.openGuide
|
|
3577
3577
|
}, {
|
|
3578
3578
|
default: u(() => [
|
|
3579
|
-
|
|
3580
|
-
i.showGuideNotification ? (
|
|
3579
|
+
_(d(e.$t("guideButton")) + " ", 1),
|
|
3580
|
+
i.showGuideNotification ? (l(), p("div", No)) : v("", !0)
|
|
3581
3581
|
]),
|
|
3582
3582
|
_: 1
|
|
3583
3583
|
}, 8, ["onClick"])
|
|
3584
3584
|
])
|
|
3585
3585
|
]),
|
|
3586
3586
|
_: 1
|
|
3587
|
-
}, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (
|
|
3587
|
+
}, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (l(), p("div", Wo, [
|
|
3588
3588
|
c(D, { class: "h-full w-full" }, {
|
|
3589
3589
|
default: u(() => [
|
|
3590
|
-
i.tab === "design" ? (
|
|
3590
|
+
i.tab === "design" ? (l(), C(b, {
|
|
3591
3591
|
key: 0,
|
|
3592
3592
|
_document: n.state,
|
|
3593
3593
|
_value: {
|
|
@@ -3595,7 +3595,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3595
3595
|
},
|
|
3596
3596
|
set: n.set,
|
|
3597
3597
|
offset: n.fixed ? 0 : n.width
|
|
3598
|
-
}, null, 8, ["_document", "set", "offset"])) : i.tab === "fields" ? (
|
|
3598
|
+
}, null, 8, ["_document", "set", "offset"])) : i.tab === "fields" ? (l(), C(k, {
|
|
3599
3599
|
key: 1,
|
|
3600
3600
|
_document: n.state,
|
|
3601
3601
|
"crm-service": o.extensionTabType,
|
|
@@ -3603,7 +3603,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3603
3603
|
css: "data.css"
|
|
3604
3604
|
},
|
|
3605
3605
|
set: n.set
|
|
3606
|
-
}, null, 8, ["_document", "crm-service", "set"])) : i.tab === "extension" ? (
|
|
3606
|
+
}, null, 8, ["_document", "crm-service", "set"])) : i.tab === "extension" ? (l(), C(w, {
|
|
3607
3607
|
key: 2,
|
|
3608
3608
|
_document: n.state,
|
|
3609
3609
|
_value: {
|
|
@@ -3613,7 +3613,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3613
3613
|
},
|
|
3614
3614
|
onInput: t[7] || (t[7] = ({ key: f, value: x }) => n.set({ key: f, value: x }))
|
|
3615
3615
|
}, null, 8, ["_document"])) : v("", !0),
|
|
3616
|
-
i.tab === "generalSettings" ? (
|
|
3616
|
+
i.tab === "generalSettings" ? (l(), C(T, {
|
|
3617
3617
|
key: 3,
|
|
3618
3618
|
_document: n.state,
|
|
3619
3619
|
_value: {
|
|
@@ -3635,7 +3635,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3635
3635
|
_: 1
|
|
3636
3636
|
})
|
|
3637
3637
|
])),
|
|
3638
|
-
i.showGuide ? (
|
|
3638
|
+
i.showGuide ? (l(), C(y, {
|
|
3639
3639
|
key: 3,
|
|
3640
3640
|
onClose: t[9] || (t[9] = (f) => i.showGuide = !1)
|
|
3641
3641
|
})) : v("", !0)
|
|
@@ -3643,11 +3643,11 @@ function jo(e, t, n, s, i, o) {
|
|
|
3643
3643
|
], 4)
|
|
3644
3644
|
]);
|
|
3645
3645
|
}
|
|
3646
|
-
const Zo = /* @__PURE__ */
|
|
3646
|
+
const Zo = /* @__PURE__ */ $(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f"]]), Qe = (e, t, n = "children") => {
|
|
3647
3647
|
if (!e) return;
|
|
3648
3648
|
t(e);
|
|
3649
3649
|
const s = e[n];
|
|
3650
|
-
!s && !Array.isArray(s) || s.forEach((i) =>
|
|
3650
|
+
!s && !Array.isArray(s) || s.forEach((i) => Qe(i, t));
|
|
3651
3651
|
}, Ko = {
|
|
3652
3652
|
i18nOptions: {
|
|
3653
3653
|
namespaces: "DocumentFormContainer",
|
|
@@ -3674,12 +3674,12 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3674
3674
|
DocumentFormNav: Dn,
|
|
3675
3675
|
DocumentDrawer: vn,
|
|
3676
3676
|
DocumentStyleContainer: Ot,
|
|
3677
|
-
simplebar:
|
|
3677
|
+
simplebar: X,
|
|
3678
3678
|
LogoBanner: jn,
|
|
3679
|
-
IsPremium:
|
|
3679
|
+
IsPremium: te
|
|
3680
3680
|
},
|
|
3681
3681
|
emits: ["update:view"],
|
|
3682
|
-
mixins: [
|
|
3682
|
+
mixins: [Y],
|
|
3683
3683
|
props: {
|
|
3684
3684
|
_document: {
|
|
3685
3685
|
type: Object,
|
|
@@ -3717,7 +3717,7 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3717
3717
|
},
|
|
3718
3718
|
data() {
|
|
3719
3719
|
return {
|
|
3720
|
-
drawerState:
|
|
3720
|
+
drawerState: W,
|
|
3721
3721
|
isDragging: !1,
|
|
3722
3722
|
previewDevice: "desktop",
|
|
3723
3723
|
sidebarWidth: 270
|
|
@@ -3725,25 +3725,25 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3725
3725
|
},
|
|
3726
3726
|
computed: {
|
|
3727
3727
|
docTemplate() {
|
|
3728
|
-
return
|
|
3728
|
+
return B(this._document, "template", null);
|
|
3729
3729
|
},
|
|
3730
3730
|
isTemplateEditable() {
|
|
3731
|
-
return
|
|
3731
|
+
return B(this.docTemplate, "views.read.isEditable", !1);
|
|
3732
3732
|
},
|
|
3733
3733
|
canMove() {
|
|
3734
3734
|
return this.isTemplateEditable && this.isEditView;
|
|
3735
3735
|
},
|
|
3736
3736
|
readLayout() {
|
|
3737
|
-
return
|
|
3737
|
+
return B(this.docTemplate, "views.read.nodes", []);
|
|
3738
3738
|
},
|
|
3739
3739
|
nestedReadLayout() {
|
|
3740
3740
|
return this._document.getReadLayout({ showHiddenNodes: this.isEditView });
|
|
3741
3741
|
},
|
|
3742
3742
|
currency() {
|
|
3743
|
-
return
|
|
3743
|
+
return B(this._document, "currency");
|
|
3744
3744
|
},
|
|
3745
3745
|
externalReferences() {
|
|
3746
|
-
return
|
|
3746
|
+
return B(this._document, "externalReferences") || [];
|
|
3747
3747
|
},
|
|
3748
3748
|
isEditView() {
|
|
3749
3749
|
return this.view === "edit";
|
|
@@ -3764,13 +3764,13 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3764
3764
|
isEditView: {
|
|
3765
3765
|
immediate: !0,
|
|
3766
3766
|
handler(e, t) {
|
|
3767
|
-
|
|
3767
|
+
W.isFixed = e ? this.isFixedSidebar : !0, e && !W.isFixed ? t === void 0 ? W.setLeft(!0) : W.useSavedLeftState() : W.showLeft = !1;
|
|
3768
3768
|
}
|
|
3769
3769
|
},
|
|
3770
3770
|
isFixedSidebar: {
|
|
3771
3771
|
immediate: !0,
|
|
3772
3772
|
handler(e) {
|
|
3773
|
-
|
|
3773
|
+
W.isFixed = e, W.showLeft = !e;
|
|
3774
3774
|
}
|
|
3775
3775
|
},
|
|
3776
3776
|
currency(e) {
|
|
@@ -3793,7 +3793,7 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3793
3793
|
await Promise.all(
|
|
3794
3794
|
(e || []).map(async ({ service: t, type: n, typeId: s }) => {
|
|
3795
3795
|
if (n && s && t && this.$store.getters["settings/isAuthenticatedCRM"](t)) {
|
|
3796
|
-
const { data: i } = await
|
|
3796
|
+
const { data: i } = await ie.getFields(
|
|
3797
3797
|
t,
|
|
3798
3798
|
{ type: n, typeId: s, populated: !0 }
|
|
3799
3799
|
);
|
|
@@ -3828,14 +3828,14 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3828
3828
|
});
|
|
3829
3829
|
},
|
|
3830
3830
|
async onBlockRemove(e, t) {
|
|
3831
|
-
if (
|
|
3831
|
+
if (ue([this.nestedReadLayout[t]]).forEach((s) => {
|
|
3832
3832
|
const i = this.readLayout.findIndex((o) => o.nodeId === s.nodeId);
|
|
3833
3833
|
this.removeFormValue(`template.views.read.nodes[${i}]`);
|
|
3834
3834
|
}), await this.$nextTick(), e.itemId.startsWith("packageGroup")) {
|
|
3835
3835
|
const s = e.itemId.split("-")[1];
|
|
3836
3836
|
this.removePackageGroup(s);
|
|
3837
3837
|
} else
|
|
3838
|
-
|
|
3838
|
+
Qe(e, (i) => {
|
|
3839
3839
|
i.value && Object.values(i.value).forEach((o) => {
|
|
3840
3840
|
this.removeFormKeyValue(`${o}`);
|
|
3841
3841
|
let r = o.replace(
|
|
@@ -3854,46 +3854,46 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3854
3854
|
Array.isArray(t.packages) && t.packages.forEach((s) => {
|
|
3855
3855
|
this.setFormValue({
|
|
3856
3856
|
key: "articles",
|
|
3857
|
-
value:
|
|
3857
|
+
value: B(this._document, "_doc.articles", []).filter(
|
|
3858
3858
|
({ packageId: i }) => i !== s.packageId
|
|
3859
3859
|
)
|
|
3860
3860
|
});
|
|
3861
3861
|
});
|
|
3862
3862
|
const n = Object.assign(
|
|
3863
3863
|
{},
|
|
3864
|
-
|
|
3864
|
+
B(this._document, "_doc.data.packageGroups")
|
|
3865
3865
|
);
|
|
3866
|
-
delete n[e], this.setFormValue({ key: "data.packageGroups", value: n }), Object.keys(
|
|
3866
|
+
delete n[e], this.setFormValue({ key: "data.packageGroups", value: n }), Object.keys(B(this._document, "_doc.data.packageGroups", {})).length || this.removeFormValue(
|
|
3867
3867
|
"template.validationSchema.properties.data.properties.packageGroups"
|
|
3868
3868
|
);
|
|
3869
3869
|
},
|
|
3870
3870
|
onBlockListChange(e, { removedIndex: t, addedIndex: n, payload: s }) {
|
|
3871
3871
|
if (t !== null && n !== null) {
|
|
3872
3872
|
if (t === n) return;
|
|
3873
|
-
const i =
|
|
3873
|
+
const i = mt(
|
|
3874
3874
|
this.nestedReadLayout,
|
|
3875
3875
|
t,
|
|
3876
3876
|
n
|
|
3877
3877
|
);
|
|
3878
3878
|
this.setFormValue({
|
|
3879
3879
|
key: "template.views.read.nodes",
|
|
3880
|
-
value:
|
|
3880
|
+
value: ue(i)
|
|
3881
3881
|
});
|
|
3882
3882
|
} else if (!t && n !== null) {
|
|
3883
|
-
const { sectionKey: i, createNewSection: o, addValidation: r, contentData: g } = s, { readView: h, validation: b, data:
|
|
3883
|
+
const { sectionKey: i, createNewSection: o, addValidation: r, contentData: g } = s, { readView: h, validation: b, data: k } = o({
|
|
3884
3884
|
sectionKey: i,
|
|
3885
3885
|
document: this._document,
|
|
3886
3886
|
contentData: g
|
|
3887
3887
|
});
|
|
3888
|
-
r({ validation: b, data:
|
|
3889
|
-
const
|
|
3888
|
+
r({ validation: b, data: k });
|
|
3889
|
+
const w = pt({ tree: h }), T = [
|
|
3890
3890
|
...this.nestedReadLayout.slice(0, n),
|
|
3891
|
-
...
|
|
3891
|
+
...w,
|
|
3892
3892
|
...this.nestedReadLayout.slice(n)
|
|
3893
3893
|
];
|
|
3894
3894
|
this.setFormValue({
|
|
3895
3895
|
key: "template.views.read.nodes",
|
|
3896
|
-
value:
|
|
3896
|
+
value: ue(T)
|
|
3897
3897
|
});
|
|
3898
3898
|
}
|
|
3899
3899
|
},
|
|
@@ -3910,9 +3910,9 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3910
3910
|
class: "drag-drop-empty-list is-placeholder text-gray-400"
|
|
3911
3911
|
}, ns = ["innerHTML"];
|
|
3912
3912
|
function is(e, t, n, s, i, o) {
|
|
3913
|
-
const r = m("CButton"), g = m("DocumentFormViewRadio"), h = m("CIcon"), b = m("DocumentFormNav"),
|
|
3914
|
-
return
|
|
3915
|
-
|
|
3913
|
+
const r = m("CButton"), g = m("DocumentFormViewRadio"), h = m("CIcon"), b = m("DocumentFormNav"), k = m("DocumentFormMenu"), w = m("DynamicChapter"), T = m("DynamicBlock"), D = m("LogoBanner"), y = m("IsPremium"), f = m("DocumentStyleContainer"), x = m("WithDimensions"), I = m("portal-target"), F = m("DocumentDrawer");
|
|
3914
|
+
return l(), p("div", Qo, [
|
|
3915
|
+
a("div", {
|
|
3916
3916
|
class: L([{
|
|
3917
3917
|
"is-edit-view": o.isEditView,
|
|
3918
3918
|
"is-empty-list": !o.nestedReadLayout.length
|
|
@@ -3920,8 +3920,8 @@ function is(e, t, n, s, i, o) {
|
|
|
3920
3920
|
}, [
|
|
3921
3921
|
c(b, { close: n.close }, {
|
|
3922
3922
|
left: u(() => [
|
|
3923
|
-
|
|
3924
|
-
n.close ? (
|
|
3923
|
+
a("div", Yo, [
|
|
3924
|
+
n.close ? (l(), C(r, {
|
|
3925
3925
|
key: 0,
|
|
3926
3926
|
"icon-props": { size: 20 },
|
|
3927
3927
|
size: "normal",
|
|
@@ -3931,7 +3931,7 @@ function is(e, t, n, s, i, o) {
|
|
|
3931
3931
|
pattern: "tertiary",
|
|
3932
3932
|
onClick: n.close
|
|
3933
3933
|
}, null, 8, ["onClick"])) : v("", !0),
|
|
3934
|
-
n.goBack && e.mq !== "sm" ? (
|
|
3934
|
+
n.goBack && e.mq !== "sm" ? (l(), C(r, {
|
|
3935
3935
|
key: 1,
|
|
3936
3936
|
"icon-props": { size: 20 },
|
|
3937
3937
|
type: "none",
|
|
@@ -3949,35 +3949,35 @@ function is(e, t, n, s, i, o) {
|
|
|
3949
3949
|
class: "max-sm:hidden",
|
|
3950
3950
|
thinner: "",
|
|
3951
3951
|
icon: "sidebar",
|
|
3952
|
-
onClick:
|
|
3952
|
+
onClick: Z(i.drawerState.toggleLeft, ["stop"])
|
|
3953
3953
|
}, null, 8, ["onClick"]),
|
|
3954
|
-
|
|
3954
|
+
P(e.$slots, "nav-left", {}, void 0, !0)
|
|
3955
3955
|
])
|
|
3956
3956
|
]),
|
|
3957
3957
|
center: u(() => [
|
|
3958
|
-
|
|
3958
|
+
a("div", Jo, [
|
|
3959
3959
|
N(c(g, {
|
|
3960
3960
|
small: e.mq === "sm",
|
|
3961
3961
|
"model-value": n.view,
|
|
3962
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3962
|
+
"onUpdate:modelValue": t[0] || (t[0] = (E) => e.$emit("update:view", E))
|
|
3963
3963
|
}, null, 8, ["small", "model-value"]), [
|
|
3964
|
-
[
|
|
3964
|
+
[ve, o.nestedReadLayout.length]
|
|
3965
3965
|
]),
|
|
3966
|
-
!o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (
|
|
3967
|
-
(
|
|
3968
|
-
key:
|
|
3969
|
-
style:
|
|
3970
|
-
i.previewDevice ===
|
|
3966
|
+
!o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (l(), p("div", Xo, [
|
|
3967
|
+
(l(), p(S, null, A(["desktop", "tablet", "mobile"], (E) => a("div", {
|
|
3968
|
+
key: E,
|
|
3969
|
+
style: R(
|
|
3970
|
+
i.previewDevice === E && {
|
|
3971
3971
|
boxShadow: "0 1px 1px rgba(0, 0, 0, 0.2)",
|
|
3972
3972
|
backgroundColor: "hsl(0, 0%, 100%)",
|
|
3973
3973
|
color: "hsl(0, 0%, 7%)"
|
|
3974
3974
|
}
|
|
3975
3975
|
),
|
|
3976
3976
|
class: "pointer inline-flex select-none items-center justify-center rounded-md p-[10px] font-semibold text-gray-700 transition duration-150 ease-linear",
|
|
3977
|
-
onClick: (
|
|
3977
|
+
onClick: (ne) => i.previewDevice = E
|
|
3978
3978
|
}, [
|
|
3979
3979
|
c(h, {
|
|
3980
|
-
type:
|
|
3980
|
+
type: E,
|
|
3981
3981
|
size: "20"
|
|
3982
3982
|
}, null, 8, ["type"])
|
|
3983
3983
|
], 12, es)), 64))
|
|
@@ -3985,11 +3985,11 @@ function is(e, t, n, s, i, o) {
|
|
|
3985
3985
|
])
|
|
3986
3986
|
]),
|
|
3987
3987
|
right: u(() => [
|
|
3988
|
-
|
|
3988
|
+
P(e.$slots, "nav-right", {}, void 0, !0)
|
|
3989
3989
|
]),
|
|
3990
3990
|
_: 3
|
|
3991
3991
|
}, 8, ["close"]),
|
|
3992
|
-
N(c(
|
|
3992
|
+
N(c(k, {
|
|
3993
3993
|
state: n._document,
|
|
3994
3994
|
set: n.setFormValue,
|
|
3995
3995
|
"remove-value": n.removeFormValue,
|
|
@@ -3998,22 +3998,22 @@ function is(e, t, n, s, i, o) {
|
|
|
3998
3998
|
"can-use-blocks": o.isTemplateEditable,
|
|
3999
3999
|
"is-legacy-template": o.isLegacyTemplate,
|
|
4000
4000
|
width: i.sidebarWidth,
|
|
4001
|
-
onClose: t[1] || (t[1] = (
|
|
4001
|
+
onClose: t[1] || (t[1] = (E) => i.drawerState.showLeft = !1)
|
|
4002
4002
|
}, null, 8, ["state", "set", "remove-value", "template", "fixed", "can-use-blocks", "is-legacy-template", "width"]), [
|
|
4003
|
-
[
|
|
4003
|
+
[ve, i.drawerState.showLeft]
|
|
4004
4004
|
]),
|
|
4005
|
-
|
|
4005
|
+
a("div", {
|
|
4006
4006
|
ref: "scroll-body",
|
|
4007
4007
|
class: L([{
|
|
4008
4008
|
"device-offset": o.isEditView
|
|
4009
4009
|
}, "doc-scroll-container flex w-full justify-center"]),
|
|
4010
|
-
style:
|
|
4010
|
+
style: R(
|
|
4011
4011
|
i.drawerState.showLeft && !i.drawerState.isFixed && {
|
|
4012
4012
|
marginLeft: `${i.sidebarWidth}px`
|
|
4013
4013
|
}
|
|
4014
4014
|
)
|
|
4015
4015
|
}, [
|
|
4016
|
-
|
|
4016
|
+
a("div", {
|
|
4017
4017
|
class: L([[
|
|
4018
4018
|
{
|
|
4019
4019
|
"is-device-edit": o.isEditView,
|
|
@@ -4023,26 +4023,26 @@ function is(e, t, n, s, i, o) {
|
|
|
4023
4023
|
o.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%]"
|
|
4024
4024
|
], "list-container"])
|
|
4025
4025
|
}, [
|
|
4026
|
-
!o.nestedReadLayout.length && !o.isFixedSidebar ? (
|
|
4027
|
-
t[8] || (t[8] =
|
|
4028
|
-
|
|
4026
|
+
!o.nestedReadLayout.length && !o.isFixedSidebar ? (l(), p("div", ts, [
|
|
4027
|
+
t[8] || (t[8] = ht('<div style="position:relative;" data-v-b1290feb><div class="drag-drop-illustration-block" data-v-b1290feb><div data-v-b1290feb></div><div data-v-b1290feb></div></div><svg class="drag-drop-illustration" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" data-v-b1290feb><path class="drag-drop-illustration-finger" 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" data-v-b1290feb></path><path class="drag-drop-illustration-grabbing" 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" data-v-b1290feb></path></svg></div>', 1)),
|
|
4028
|
+
a("div", {
|
|
4029
4029
|
class: "text-center",
|
|
4030
4030
|
style: { "max-width": "22ch" },
|
|
4031
4031
|
innerHTML: e.$t("emptyBlockPlaceholderLarge")
|
|
4032
4032
|
}, null, 8, ns)
|
|
4033
4033
|
])) : v("", !0),
|
|
4034
|
-
(
|
|
4034
|
+
(l(), C(j(o.isEditView ? "div" : "simplebar"), { class: "h-full w-full" }, {
|
|
4035
4035
|
default: u(() => [
|
|
4036
4036
|
c(x, { "provide-device": !0 }, {
|
|
4037
4037
|
default: u(() => {
|
|
4038
|
-
var
|
|
4038
|
+
var E, ne;
|
|
4039
4039
|
return [
|
|
4040
4040
|
c(f, {
|
|
4041
4041
|
class: "relative h-full w-full",
|
|
4042
|
-
"input-style": ((
|
|
4042
|
+
"input-style": ((ne = (E = n._document) == null ? void 0 : E.data) == null ? void 0 : ne.css) || null
|
|
4043
4043
|
}, {
|
|
4044
4044
|
default: u(() => [
|
|
4045
|
-
o.nestedReadLayout ? (
|
|
4045
|
+
o.nestedReadLayout ? (l(), C(j(o.dndEnabled ? "DragList" : "div"), {
|
|
4046
4046
|
key: 0,
|
|
4047
4047
|
handle: ".NO-SELECTOR",
|
|
4048
4048
|
"drop-placeholder": { className: "drag-drop-placeholder" },
|
|
@@ -4054,15 +4054,15 @@ function is(e, t, n, s, i, o) {
|
|
|
4054
4054
|
"group-name": "document-blocks",
|
|
4055
4055
|
"non-drag-area-selector": ".no-drag",
|
|
4056
4056
|
"drag-handle-selector": ".drag-item",
|
|
4057
|
-
onDragStart: t[3] || (t[3] = (
|
|
4058
|
-
onDragEnd: t[4] || (t[4] = (
|
|
4059
|
-
onDrop: t[5] || (t[5] = (
|
|
4057
|
+
onDragStart: t[3] || (t[3] = (V) => i.isDragging = !0),
|
|
4058
|
+
onDragEnd: t[4] || (t[4] = (V) => i.isDragging = !1),
|
|
4059
|
+
onDrop: t[5] || (t[5] = (V) => o.onBlockListChange("blocks-list", V))
|
|
4060
4060
|
}, {
|
|
4061
4061
|
default: u(() => [
|
|
4062
|
-
(
|
|
4062
|
+
(l(!0), p(S, null, A(n._document.getReadLayout({
|
|
4063
4063
|
showHiddenNodes: o.isEditView
|
|
4064
|
-
}), (
|
|
4065
|
-
key:
|
|
4064
|
+
}), (V, z) => (l(), C(j(o.dndEnabled ? "DragItem" : "div"), {
|
|
4065
|
+
key: V.nodeId,
|
|
4066
4066
|
class: L([
|
|
4067
4067
|
{
|
|
4068
4068
|
"drag-item": o.dndEnabled
|
|
@@ -4070,34 +4070,34 @@ function is(e, t, n, s, i, o) {
|
|
|
4070
4070
|
])
|
|
4071
4071
|
}, {
|
|
4072
4072
|
default: u(() => [
|
|
4073
|
-
c(
|
|
4073
|
+
c(T, {
|
|
4074
4074
|
ref_for: !0,
|
|
4075
|
-
ref:
|
|
4075
|
+
ref: V.nodeId,
|
|
4076
4076
|
"is-dragging": i.isDragging,
|
|
4077
4077
|
"is-edit-view": o.isEditView,
|
|
4078
4078
|
"can-move": o.canMove,
|
|
4079
|
-
"block-type":
|
|
4080
|
-
"is-visible":
|
|
4081
|
-
"show-edit-button":
|
|
4082
|
-
onRemove: (
|
|
4083
|
-
onMove: (
|
|
4084
|
-
onEdit: t[2] || (t[2] = (
|
|
4085
|
-
onToggleVisible: (
|
|
4079
|
+
"block-type": V.itemType,
|
|
4080
|
+
"is-visible": V.isVisible,
|
|
4081
|
+
"show-edit-button": !!V.showEditButton,
|
|
4082
|
+
onRemove: (O) => o.onBlockRemove(V, z),
|
|
4083
|
+
onMove: (O) => o.onBlockMove(O, z),
|
|
4084
|
+
onEdit: t[2] || (t[2] = (O) => i.drawerState.openSection = O),
|
|
4085
|
+
onToggleVisible: (O) => o.onBlockToggleVisible(V, O)
|
|
4086
4086
|
}, {
|
|
4087
4087
|
default: u(() => [
|
|
4088
|
-
c(
|
|
4089
|
-
"component-name":
|
|
4088
|
+
c(w, {
|
|
4089
|
+
"component-name": V.componentName,
|
|
4090
4090
|
"component-props": {
|
|
4091
|
-
|
|
4091
|
+
...V.props,
|
|
4092
4092
|
_document: n._document,
|
|
4093
|
-
_value:
|
|
4094
|
-
_nodeId:
|
|
4093
|
+
_value: V.value,
|
|
4094
|
+
_nodeId: V.nodeId
|
|
4095
4095
|
},
|
|
4096
|
-
children:
|
|
4097
|
-
"is-visible":
|
|
4098
|
-
"on-input": ({ key:
|
|
4099
|
-
"on-remove": ({ key:
|
|
4100
|
-
"on-mount": (
|
|
4096
|
+
children: V.children,
|
|
4097
|
+
"is-visible": V.isVisible,
|
|
4098
|
+
"on-input": ({ key: O, value: Xe, options: et }) => n.setFormValue({ key: O, value: Xe, options: et }),
|
|
4099
|
+
"on-remove": ({ key: O }) => n.removeFormValue(O),
|
|
4100
|
+
"on-mount": (O) => o.onAddBlockMount(V.nodeId, O)
|
|
4101
4101
|
}, null, 8, ["component-name", "component-props", "children", "is-visible", "on-input", "on-remove", "on-mount"])
|
|
4102
4102
|
]),
|
|
4103
4103
|
_: 2
|
|
@@ -4108,9 +4108,9 @@ function is(e, t, n, s, i, o) {
|
|
|
4108
4108
|
]),
|
|
4109
4109
|
_: 1
|
|
4110
4110
|
}, 40, ["should-animate-drop"])) : v("", !0),
|
|
4111
|
-
n.canShowBanner ? (
|
|
4112
|
-
default: u(({ isProLike:
|
|
4113
|
-
!o.isEditView &&
|
|
4111
|
+
n.canShowBanner ? (l(), C(y, { key: 1 }, {
|
|
4112
|
+
default: u(({ isProLike: V }) => [
|
|
4113
|
+
!o.isEditView && !V ? (l(), C(D, {
|
|
4114
4114
|
key: 0,
|
|
4115
4115
|
position: "sticky"
|
|
4116
4116
|
})) : v("", !0)
|
|
@@ -4129,13 +4129,13 @@ function is(e, t, n, s, i, o) {
|
|
|
4129
4129
|
}))
|
|
4130
4130
|
], 2)
|
|
4131
4131
|
], 6),
|
|
4132
|
-
(
|
|
4132
|
+
(l(), C(F, {
|
|
4133
4133
|
id: "settingsDrawer",
|
|
4134
4134
|
key: "settingsDrawer",
|
|
4135
4135
|
open: !!i.drawerState.openSection,
|
|
4136
4136
|
fixed: !0,
|
|
4137
4137
|
position: "right",
|
|
4138
|
-
"onUpdate:open": t[7] || (t[7] = (
|
|
4138
|
+
"onUpdate:open": t[7] || (t[7] = (E) => i.drawerState.openSection = null)
|
|
4139
4139
|
}, {
|
|
4140
4140
|
default: u(() => [
|
|
4141
4141
|
c(r, {
|
|
@@ -4146,16 +4146,16 @@ function is(e, t, n, s, i, o) {
|
|
|
4146
4146
|
type: "none",
|
|
4147
4147
|
pattern: "tertiary",
|
|
4148
4148
|
class: "absolute right-2 top-2",
|
|
4149
|
-
onClick: t[6] || (t[6] = (
|
|
4149
|
+
onClick: t[6] || (t[6] = (E) => i.drawerState.openSection = null)
|
|
4150
4150
|
}),
|
|
4151
|
-
c(
|
|
4151
|
+
c(I, { name: "drawer-content" })
|
|
4152
4152
|
]),
|
|
4153
4153
|
_: 1
|
|
4154
4154
|
}, 8, ["open"]))
|
|
4155
4155
|
], 2)
|
|
4156
4156
|
]);
|
|
4157
4157
|
}
|
|
4158
|
-
const os = /* @__PURE__ */
|
|
4158
|
+
const os = /* @__PURE__ */ $(Ko, [["render", is], ["__scopeId", "data-v-b1290feb"]]), ss = {
|
|
4159
4159
|
name: "DocumentSend",
|
|
4160
4160
|
i18nOptions: {
|
|
4161
4161
|
namespaces: "documentSend",
|
|
@@ -4185,21 +4185,21 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4185
4185
|
}
|
|
4186
4186
|
},
|
|
4187
4187
|
components: {
|
|
4188
|
-
Drawer:
|
|
4188
|
+
Drawer: Ze,
|
|
4189
4189
|
SendForm: Xt,
|
|
4190
4190
|
CCheckbox: Re,
|
|
4191
|
-
CIcon:
|
|
4192
|
-
CButton:
|
|
4193
|
-
ProBadge:
|
|
4194
|
-
IsPremium:
|
|
4195
|
-
IsPremiumPreStep:
|
|
4191
|
+
CIcon: ft,
|
|
4192
|
+
CButton: Oe,
|
|
4193
|
+
ProBadge: We,
|
|
4194
|
+
IsPremium: te,
|
|
4195
|
+
IsPremiumPreStep: ee
|
|
4196
4196
|
},
|
|
4197
4197
|
mixins: [
|
|
4198
|
-
|
|
4198
|
+
ae([], {
|
|
4199
4199
|
useEmit: !1,
|
|
4200
4200
|
setFnName: "setFormValue"
|
|
4201
4201
|
}),
|
|
4202
|
-
|
|
4202
|
+
Y
|
|
4203
4203
|
],
|
|
4204
4204
|
props: {
|
|
4205
4205
|
setFormValue: {
|
|
@@ -4216,7 +4216,7 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4216
4216
|
}
|
|
4217
4217
|
},
|
|
4218
4218
|
setup(e) {
|
|
4219
|
-
const { addBlock: t } =
|
|
4219
|
+
const { addBlock: t } = Ne({
|
|
4220
4220
|
setter: e.setFormValue
|
|
4221
4221
|
});
|
|
4222
4222
|
return { addBlock: t };
|
|
@@ -4238,7 +4238,7 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4238
4238
|
};
|
|
4239
4239
|
},
|
|
4240
4240
|
computed: {
|
|
4241
|
-
...
|
|
4241
|
+
...H({
|
|
4242
4242
|
accountConfigName: "application/accountConfigName"
|
|
4243
4243
|
}),
|
|
4244
4244
|
isOffertaCxt() {
|
|
@@ -4254,10 +4254,10 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4254
4254
|
return !!(this.viewSettings && this.viewSettings.isPublicForm);
|
|
4255
4255
|
},
|
|
4256
4256
|
hasAnswerBlock() {
|
|
4257
|
-
return (
|
|
4257
|
+
return (B(this._document, "template.views.read.nodes") || []).some((t) => t.itemType === "answer");
|
|
4258
4258
|
},
|
|
4259
4259
|
tooManyClients() {
|
|
4260
|
-
return (
|
|
4260
|
+
return (B(this._document, "clients") || []).length > 15;
|
|
4261
4261
|
}
|
|
4262
4262
|
},
|
|
4263
4263
|
watch: {
|
|
@@ -4271,8 +4271,8 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4271
4271
|
!this.isPublicForm && this.$fab && (this.$fab.show = !0);
|
|
4272
4272
|
},
|
|
4273
4273
|
methods: {
|
|
4274
|
-
...
|
|
4275
|
-
createTemplate:
|
|
4274
|
+
...K({
|
|
4275
|
+
createTemplate: M.DO_CREATE_TEMPLATE
|
|
4276
4276
|
}),
|
|
4277
4277
|
open() {
|
|
4278
4278
|
this.isOpen = !0;
|
|
@@ -4281,7 +4281,7 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4281
4281
|
if (!this._document) return;
|
|
4282
4282
|
const e = {
|
|
4283
4283
|
...this._document.copyTemplateDocDefault(),
|
|
4284
|
-
name:
|
|
4284
|
+
name: B(this._document, "name") || this.$t("_common:untitled"),
|
|
4285
4285
|
_id: void 0,
|
|
4286
4286
|
id: void 0,
|
|
4287
4287
|
isVisible: !0
|
|
@@ -4299,10 +4299,10 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4299
4299
|
}));
|
|
4300
4300
|
}
|
|
4301
4301
|
}
|
|
4302
|
-
},
|
|
4302
|
+
}, as = {
|
|
4303
4303
|
key: "1",
|
|
4304
4304
|
class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
|
|
4305
|
-
},
|
|
4305
|
+
}, ls = { class: "pl-2" }, rs = ["textContent"], ds = { class: "text-sm text-red-600 text-opacity-80" }, cs = {
|
|
4306
4306
|
key: "2",
|
|
4307
4307
|
class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
|
|
4308
4308
|
}, us = { class: "pl-2" }, ms = ["textContent"], ps = { class: "mb-4 text-sm text-red-600 text-opacity-80" }, hs = {
|
|
@@ -4310,15 +4310,15 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4310
4310
|
class: "inline-flex cursor-pointer select-none items-center py-2 text-[12px] font-[500] text-gray-600"
|
|
4311
4311
|
}, fs = ["onClick"], gs = { style: { "padding-left": "0.5em" } };
|
|
4312
4312
|
function ys(e, t, n, s, i, o) {
|
|
4313
|
-
const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), b = m("ProBadge"),
|
|
4314
|
-
return e.mq !== "sm" || i.isOpen ? (
|
|
4313
|
+
const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), b = m("ProBadge"), k = m("IsPremiumPreStep"), w = m("IsPremium"), T = m("SendForm"), D = se("tooltip");
|
|
4314
|
+
return e.mq !== "sm" || i.isOpen ? (l(), C(j(e.mq === "sm" ? "div" : "Drawer"), {
|
|
4315
4315
|
key: 0,
|
|
4316
4316
|
modelValue: i.isOpen,
|
|
4317
4317
|
"onUpdate:modelValue": t[3] || (t[3] = (y) => i.isOpen = y),
|
|
4318
4318
|
placement: "right"
|
|
4319
4319
|
}, {
|
|
4320
4320
|
default: u(() => [
|
|
4321
|
-
|
|
4321
|
+
a("div", {
|
|
4322
4322
|
class: L([{
|
|
4323
4323
|
"is-fullscreen": e.mq === "sm"
|
|
4324
4324
|
}, "send-modal font-inter"])
|
|
@@ -4330,7 +4330,7 @@ function ys(e, t, n, s, i, o) {
|
|
|
4330
4330
|
style: { position: "absolute", right: "1em", top: "1em", "z-index": "99" },
|
|
4331
4331
|
onClick: t[0] || (t[0] = (y) => i.isOpen = !1)
|
|
4332
4332
|
}),
|
|
4333
|
-
c(
|
|
4333
|
+
c(T, {
|
|
4334
4334
|
_document: e._document,
|
|
4335
4335
|
_value: e._value,
|
|
4336
4336
|
"set-form-value": n.setFormValue,
|
|
@@ -4339,7 +4339,7 @@ function ys(e, t, n, s, i, o) {
|
|
|
4339
4339
|
"use-scroll": ""
|
|
4340
4340
|
}, {
|
|
4341
4341
|
send: u(() => [
|
|
4342
|
-
o.isPublicForm ? (
|
|
4342
|
+
o.isPublicForm ? (l(), C(r, {
|
|
4343
4343
|
key: 0,
|
|
4344
4344
|
type: "secondary",
|
|
4345
4345
|
wide: "",
|
|
@@ -4347,18 +4347,18 @@ function ys(e, t, n, s, i, o) {
|
|
|
4347
4347
|
onClick: n.onSaveDocument
|
|
4348
4348
|
}, {
|
|
4349
4349
|
default: u(() => [
|
|
4350
|
-
|
|
4350
|
+
_(d(e.$t("signupToSend")), 1)
|
|
4351
4351
|
]),
|
|
4352
4352
|
_: 1
|
|
4353
4353
|
}, 8, ["onClick"])) : v("", !0)
|
|
4354
4354
|
]),
|
|
4355
4355
|
[o.saveTemplateSlot]: u(() => [
|
|
4356
|
-
|
|
4357
|
-
c(
|
|
4356
|
+
a("label", hs, [
|
|
4357
|
+
c(w, null, {
|
|
4358
4358
|
default: u(({ canCreateTemplate: y }) => [
|
|
4359
|
-
c(
|
|
4359
|
+
c(k, { feature: "saveDocTemplate" }, {
|
|
4360
4360
|
default: u(({ onClick: f }) => [
|
|
4361
|
-
|
|
4361
|
+
a("div", {
|
|
4362
4362
|
class: "flex items-center",
|
|
4363
4363
|
onClick: (x) => o.onClickSaveAsTemplate({
|
|
4364
4364
|
event: x,
|
|
@@ -4373,8 +4373,8 @@ function ys(e, t, n, s, i, o) {
|
|
|
4373
4373
|
size: "small",
|
|
4374
4374
|
type: "secondary"
|
|
4375
4375
|
}, null, 8, ["modelValue"]),
|
|
4376
|
-
|
|
4377
|
-
|
|
4376
|
+
a("div", gs, [
|
|
4377
|
+
_(d(e.$t("saveDocAsTemplate")) + " ", 1),
|
|
4378
4378
|
N(c(g, {
|
|
4379
4379
|
type: "info",
|
|
4380
4380
|
size: "15"
|
|
@@ -4382,7 +4382,7 @@ function ys(e, t, n, s, i, o) {
|
|
|
4382
4382
|
[D, o.saveTemplateTooltip]
|
|
4383
4383
|
])
|
|
4384
4384
|
]),
|
|
4385
|
-
y ? v("", !0) : (
|
|
4385
|
+
y ? v("", !0) : (l(), C(b, {
|
|
4386
4386
|
key: 0,
|
|
4387
4387
|
class: "ml-2 self-center"
|
|
4388
4388
|
}))
|
|
@@ -4396,39 +4396,39 @@ function ys(e, t, n, s, i, o) {
|
|
|
4396
4396
|
])
|
|
4397
4397
|
]),
|
|
4398
4398
|
default: u(() => [
|
|
4399
|
-
o.tooManyClients ? (
|
|
4400
|
-
|
|
4399
|
+
o.tooManyClients ? (l(), p("div", as, [
|
|
4400
|
+
a("div", null, [
|
|
4401
4401
|
c(g, {
|
|
4402
4402
|
type: "error",
|
|
4403
4403
|
size: "18",
|
|
4404
4404
|
class: "-mt-1 text-red-600"
|
|
4405
4405
|
})
|
|
4406
4406
|
]),
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4407
|
+
a("div", null, [
|
|
4408
|
+
a("div", ls, [
|
|
4409
|
+
a("div", {
|
|
4410
4410
|
class: "text-sm font-semibold text-red-600",
|
|
4411
4411
|
textContent: d(e.$t("tooManyClientsTitle"))
|
|
4412
4412
|
}, null, 8, rs),
|
|
4413
|
-
|
|
4413
|
+
a("div", ds, d(e.$t("tooManyClientsText")), 1)
|
|
4414
4414
|
])
|
|
4415
4415
|
])
|
|
4416
4416
|
])) : v("", !0),
|
|
4417
|
-
o.hasAnswerBlock ? v("", !0) : (
|
|
4418
|
-
|
|
4417
|
+
o.hasAnswerBlock ? v("", !0) : (l(), p("div", cs, [
|
|
4418
|
+
a("div", null, [
|
|
4419
4419
|
c(g, {
|
|
4420
4420
|
type: "error",
|
|
4421
4421
|
size: "18",
|
|
4422
4422
|
class: "-mt-1 text-red-600"
|
|
4423
4423
|
})
|
|
4424
4424
|
]),
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4425
|
+
a("div", null, [
|
|
4426
|
+
a("div", us, [
|
|
4427
|
+
a("div", {
|
|
4428
4428
|
class: "text-sm font-semibold text-red-600",
|
|
4429
4429
|
textContent: d(e.$t("signMissingTitle"))
|
|
4430
4430
|
}, null, 8, ms),
|
|
4431
|
-
|
|
4431
|
+
a("div", ps, d(e.$t("signMissingText")), 1)
|
|
4432
4432
|
]),
|
|
4433
4433
|
c(r, {
|
|
4434
4434
|
type: "secondary",
|
|
@@ -4437,7 +4437,7 @@ function ys(e, t, n, s, i, o) {
|
|
|
4437
4437
|
onClick: t[1] || (t[1] = (y) => s.addBlock({ sectionKey: "answer", document: e._document }))
|
|
4438
4438
|
}, {
|
|
4439
4439
|
default: u(() => [
|
|
4440
|
-
|
|
4440
|
+
_(d(e.$t("signMissingAdd")), 1)
|
|
4441
4441
|
]),
|
|
4442
4442
|
_: 1
|
|
4443
4443
|
})
|
|
@@ -4451,7 +4451,7 @@ function ys(e, t, n, s, i, o) {
|
|
|
4451
4451
|
_: 1
|
|
4452
4452
|
}, 8, ["modelValue"])) : v("", !0);
|
|
4453
4453
|
}
|
|
4454
|
-
const vs = /* @__PURE__ */
|
|
4454
|
+
const vs = /* @__PURE__ */ $(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e"]]), Cs = {
|
|
4455
4455
|
i18nOptions: {
|
|
4456
4456
|
namespaces: "DocumentTemplateFormModal",
|
|
4457
4457
|
messages: {
|
|
@@ -4483,7 +4483,7 @@ const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
|
|
|
4483
4483
|
components: {
|
|
4484
4484
|
CCallout: tn,
|
|
4485
4485
|
CCheckbox: Re,
|
|
4486
|
-
CField:
|
|
4486
|
+
CField: _e
|
|
4487
4487
|
},
|
|
4488
4488
|
emits: ["close"],
|
|
4489
4489
|
props: {
|
|
@@ -4506,7 +4506,7 @@ const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
|
|
|
4506
4506
|
},
|
|
4507
4507
|
setup() {
|
|
4508
4508
|
return {
|
|
4509
|
-
v$:
|
|
4509
|
+
v$: je()
|
|
4510
4510
|
};
|
|
4511
4511
|
},
|
|
4512
4512
|
data() {
|
|
@@ -4525,7 +4525,7 @@ const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
|
|
|
4525
4525
|
};
|
|
4526
4526
|
},
|
|
4527
4527
|
computed: {
|
|
4528
|
-
...
|
|
4528
|
+
...H({
|
|
4529
4529
|
isPosting: "templates/isPosting",
|
|
4530
4530
|
templateById: "templates/byId",
|
|
4531
4531
|
docById: "documents2/byId",
|
|
@@ -4553,10 +4553,10 @@ const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
|
|
|
4553
4553
|
this.$refs.input && this.$refs.input.focus();
|
|
4554
4554
|
},
|
|
4555
4555
|
methods: {
|
|
4556
|
-
...
|
|
4557
|
-
loadTemplate:
|
|
4558
|
-
saveTemplate:
|
|
4559
|
-
updateSettings:
|
|
4556
|
+
...K({
|
|
4557
|
+
loadTemplate: M.DO_LOAD_TEMPLATE,
|
|
4558
|
+
saveTemplate: M.SAVE_TEMPLATE_FORM,
|
|
4559
|
+
updateSettings: M.UPDATE_SETTINGS
|
|
4560
4560
|
}),
|
|
4561
4561
|
async onSave() {
|
|
4562
4562
|
if (!this.document && !this.template && (gt.error('Missing prop "document" or "template"'), this.$emit("close")), this.v$.$invalid) return;
|
|
@@ -4611,13 +4611,13 @@ const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
|
|
|
4611
4611
|
}
|
|
4612
4612
|
}, bs = { class: "t-root font-inter" }, ks = { style: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, ws = { key: 1 }, _s = { class: "text-gray-600" }, xs = { key: 2 }, Ts = { class: "text-gray-600" };
|
|
4613
4613
|
function Ds(e, t, n, s, i, o) {
|
|
4614
|
-
const r = m("CCallout"), g = m("CInput"), h = m("CField"), b = m("CCheckbox"),
|
|
4615
|
-
return
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
n.template ? v("", !0) : (
|
|
4614
|
+
const r = m("CCallout"), g = m("CInput"), h = m("CField"), b = m("CCheckbox"), k = m("CButton");
|
|
4615
|
+
return l(), p("div", bs, [
|
|
4616
|
+
a("div", ks, d(n.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })), 1),
|
|
4617
|
+
a("div", null, [
|
|
4618
|
+
n.template ? v("", !0) : (l(), C(r, { key: 0 }, {
|
|
4619
4619
|
default: u(() => [
|
|
4620
|
-
|
|
4620
|
+
_(d(e.$t("calloutDescription")), 1)
|
|
4621
4621
|
]),
|
|
4622
4622
|
_: 1
|
|
4623
4623
|
})),
|
|
@@ -4636,22 +4636,22 @@ function Ds(e, t, n, s, i, o) {
|
|
|
4636
4636
|
size: "medium",
|
|
4637
4637
|
class: "rounder",
|
|
4638
4638
|
style: { "margin-bottom": "calc(1 * var(--rem))" },
|
|
4639
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
4639
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => i.name = w)
|
|
4640
4640
|
}, null, 8, ["model-value", "placeholder", "disabled"])
|
|
4641
4641
|
]),
|
|
4642
4642
|
_: 1
|
|
4643
4643
|
}, 8, ["vuelidate", "vuelidate-messages", "label"]),
|
|
4644
|
-
n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (
|
|
4644
|
+
n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (l(), p("div", ws, [
|
|
4645
4645
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4646
4646
|
default: u(() => [
|
|
4647
4647
|
c(b, {
|
|
4648
4648
|
modelValue: i.updateExistingDocTemplate,
|
|
4649
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
4649
|
+
"onUpdate:modelValue": t[1] || (t[1] = (w) => i.updateExistingDocTemplate = w),
|
|
4650
4650
|
type: "secondary",
|
|
4651
4651
|
size: "normal"
|
|
4652
4652
|
}, {
|
|
4653
4653
|
default: u(() => [
|
|
4654
|
-
|
|
4654
|
+
a("div", _s, d(e.$t("updateExisting")), 1)
|
|
4655
4655
|
]),
|
|
4656
4656
|
_: 1
|
|
4657
4657
|
}, 8, ["modelValue"])
|
|
@@ -4659,17 +4659,17 @@ function Ds(e, t, n, s, i, o) {
|
|
|
4659
4659
|
_: 1
|
|
4660
4660
|
})
|
|
4661
4661
|
])) : v("", !0),
|
|
4662
|
-
n.document && n.document.clients.length && n.showKeepClientsOption ? (
|
|
4662
|
+
n.document && n.document.clients.length && n.showKeepClientsOption ? (l(), p("div", xs, [
|
|
4663
4663
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4664
4664
|
default: u(() => [
|
|
4665
4665
|
c(b, {
|
|
4666
4666
|
modelValue: i.keepClients,
|
|
4667
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
4667
|
+
"onUpdate:modelValue": t[2] || (t[2] = (w) => i.keepClients = w),
|
|
4668
4668
|
type: "secondary",
|
|
4669
4669
|
size: "normal"
|
|
4670
4670
|
}, {
|
|
4671
4671
|
default: u(() => [
|
|
4672
|
-
|
|
4672
|
+
a("div", Ts, d(e.$t("keepClients")), 1)
|
|
4673
4673
|
]),
|
|
4674
4674
|
_: 1
|
|
4675
4675
|
}, 8, ["modelValue"])
|
|
@@ -4678,7 +4678,7 @@ function Ds(e, t, n, s, i, o) {
|
|
|
4678
4678
|
})
|
|
4679
4679
|
])) : v("", !0)
|
|
4680
4680
|
]),
|
|
4681
|
-
c(
|
|
4681
|
+
c(k, {
|
|
4682
4682
|
loading: e.isPosting,
|
|
4683
4683
|
type: "secondary",
|
|
4684
4684
|
wide: "",
|
|
@@ -4687,36 +4687,36 @@ function Ds(e, t, n, s, i, o) {
|
|
|
4687
4687
|
onClick: o.onSave
|
|
4688
4688
|
}, {
|
|
4689
4689
|
default: u(() => [
|
|
4690
|
-
|
|
4690
|
+
_(d(o.actionButtonText), 1)
|
|
4691
4691
|
]),
|
|
4692
4692
|
_: 1
|
|
4693
4693
|
}, 8, ["loading", "onClick"])
|
|
4694
4694
|
]);
|
|
4695
4695
|
}
|
|
4696
|
-
const
|
|
4697
|
-
var
|
|
4696
|
+
const Ye = /* @__PURE__ */ $(Cs, [["render", Ds], ["__scopeId", "data-v-54a3575d"]]);
|
|
4697
|
+
var me, Le;
|
|
4698
4698
|
function Ss() {
|
|
4699
|
-
if (
|
|
4700
|
-
|
|
4699
|
+
if (Le) return me;
|
|
4700
|
+
Le = 1;
|
|
4701
4701
|
function e(t, n, s) {
|
|
4702
4702
|
return t === t && (s !== void 0 && (t = t <= s ? t : s), n !== void 0 && (t = t >= n ? t : n)), t;
|
|
4703
4703
|
}
|
|
4704
|
-
return
|
|
4704
|
+
return me = e, me;
|
|
4705
4705
|
}
|
|
4706
|
-
var
|
|
4707
|
-
function
|
|
4708
|
-
if (
|
|
4709
|
-
|
|
4706
|
+
var pe, Ve;
|
|
4707
|
+
function Is() {
|
|
4708
|
+
if (Ve) return pe;
|
|
4709
|
+
Ve = 1;
|
|
4710
4710
|
var e = Ss(), t = yt();
|
|
4711
4711
|
function n(s, i, o) {
|
|
4712
4712
|
return o === void 0 && (o = i, i = void 0), o !== void 0 && (o = t(o), o = o === o ? o : 0), i !== void 0 && (i = t(i), i = i === i ? i : 0), e(t(s), i, o);
|
|
4713
4713
|
}
|
|
4714
|
-
return
|
|
4714
|
+
return pe = n, pe;
|
|
4715
4715
|
}
|
|
4716
|
-
var
|
|
4717
|
-
const Fs = /* @__PURE__ */
|
|
4716
|
+
var $s = Is();
|
|
4717
|
+
const Fs = /* @__PURE__ */ He($s), Ls = {
|
|
4718
4718
|
name: "RemainingTrialButton",
|
|
4719
|
-
components: { IsPremium:
|
|
4719
|
+
components: { IsPremium: te },
|
|
4720
4720
|
i18nOptions: {
|
|
4721
4721
|
namespace: "RemainingTrialButton",
|
|
4722
4722
|
messages: {
|
|
@@ -4744,45 +4744,45 @@ const Fs = /* @__PURE__ */ Oe(Is), Ls = {
|
|
|
4744
4744
|
}
|
|
4745
4745
|
}
|
|
4746
4746
|
},
|
|
4747
|
-
mixins: [
|
|
4747
|
+
mixins: [Y],
|
|
4748
4748
|
methods: {
|
|
4749
4749
|
clamp: Fs
|
|
4750
4750
|
}
|
|
4751
4751
|
}, Vs = { class: "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" }, Bs = { class: "text-gray-600" }, Ms = { class: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, Ps = { class: "w-56 p-4 text-sm" }, As = { class: "font-semibold" }, Es = { class: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, zs = { class: "text-sm text-gray-600" }, Rs = { class: "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" }, Os = { class: "mt-5" };
|
|
4752
4752
|
function Hs(e, t, n, s, i, o) {
|
|
4753
|
-
const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), b =
|
|
4754
|
-
return
|
|
4753
|
+
const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), b = se("close-popper");
|
|
4754
|
+
return l(), C(h, null, {
|
|
4755
4755
|
default: u(({
|
|
4756
|
-
accountType:
|
|
4757
|
-
trialDaysLeft:
|
|
4758
|
-
openUpgradeModal:
|
|
4756
|
+
accountType: k,
|
|
4757
|
+
trialDaysLeft: w,
|
|
4758
|
+
openUpgradeModal: T,
|
|
4759
4759
|
initialFreePremiumDays: D
|
|
4760
4760
|
}) => [
|
|
4761
|
-
|
|
4761
|
+
k === "trial" && e.mq !== "sm" ? (l(), C(g, {
|
|
4762
4762
|
key: 0,
|
|
4763
4763
|
"popper-class": "trial-popover"
|
|
4764
4764
|
}, {
|
|
4765
4765
|
popper: u(() => [
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4766
|
+
a("div", Ps, [
|
|
4767
|
+
a("div", As, [
|
|
4768
|
+
_(d(e.$t("title.1")) + " ", 1),
|
|
4769
|
+
a("span", Es, d(e.$t("title.2")), 1),
|
|
4770
|
+
_(" " + d(e.$t("title.3", { trialDaysLeft: w })) + ". ", 1)
|
|
4771
4771
|
]),
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
t[0] || (t[0] =
|
|
4772
|
+
a("div", zs, [
|
|
4773
|
+
_(d(e.$t("title.4")) + " ", 1),
|
|
4774
|
+
a("span", Rs, d(e.$t("title.5")), 1),
|
|
4775
|
+
t[0] || (t[0] = _(". "))
|
|
4776
4776
|
]),
|
|
4777
|
-
|
|
4778
|
-
N((
|
|
4777
|
+
a("div", Os, [
|
|
4778
|
+
N((l(), C(r, {
|
|
4779
4779
|
type: "secondary",
|
|
4780
4780
|
size: "small",
|
|
4781
4781
|
"icon-right": "arrow-right",
|
|
4782
|
-
onClick:
|
|
4782
|
+
onClick: T
|
|
4783
4783
|
}, {
|
|
4784
4784
|
default: u(() => [
|
|
4785
|
-
|
|
4785
|
+
_(d(e.$t("actionButton")), 1)
|
|
4786
4786
|
]),
|
|
4787
4787
|
_: 2
|
|
4788
4788
|
}, 1032, ["onClick"])), [
|
|
@@ -4792,12 +4792,12 @@ function Hs(e, t, n, s, i, o) {
|
|
|
4792
4792
|
])
|
|
4793
4793
|
]),
|
|
4794
4794
|
default: u(() => [
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
style:
|
|
4800
|
-
width: o.clamp(
|
|
4795
|
+
a("div", Vs, [
|
|
4796
|
+
a("div", Bs, d(e.$tc("_common:day", { count: w })) + " " + d(e.$t("button")), 1),
|
|
4797
|
+
a("div", Ms, [
|
|
4798
|
+
a("div", {
|
|
4799
|
+
style: R({
|
|
4800
|
+
width: o.clamp(w / D * 100, 0, 100) + "%"
|
|
4801
4801
|
}),
|
|
4802
4802
|
class: "to-primary-600 absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500"
|
|
4803
4803
|
}, null, 4)
|
|
@@ -4810,7 +4810,7 @@ function Hs(e, t, n, s, i, o) {
|
|
|
4810
4810
|
_: 1
|
|
4811
4811
|
});
|
|
4812
4812
|
}
|
|
4813
|
-
const Us = /* @__PURE__ */
|
|
4813
|
+
const Us = /* @__PURE__ */ $(Ls, [["render", Hs]]), le = vt({
|
|
4814
4814
|
canEdit: !1,
|
|
4815
4815
|
isForm: !0,
|
|
4816
4816
|
setFormValue: null,
|
|
@@ -4819,19 +4819,19 @@ const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
|
|
|
4819
4819
|
name: "DocumentForm",
|
|
4820
4820
|
components: {
|
|
4821
4821
|
DocumentFormContainer: os,
|
|
4822
|
-
IsPremium:
|
|
4823
|
-
IsPremiumPreStep:
|
|
4822
|
+
IsPremium: te,
|
|
4823
|
+
IsPremiumPreStep: ee,
|
|
4824
4824
|
DocumentSend: vs,
|
|
4825
4825
|
RemainingTrialButton: Us,
|
|
4826
|
-
CDropdown:
|
|
4827
|
-
CDropdownItem:
|
|
4826
|
+
CDropdown: de,
|
|
4827
|
+
CDropdownItem: G
|
|
4828
4828
|
},
|
|
4829
4829
|
setup() {
|
|
4830
4830
|
const { isValid: e } = en();
|
|
4831
4831
|
return { isValid: e };
|
|
4832
4832
|
},
|
|
4833
|
-
mixins: [
|
|
4834
|
-
provide: () => ({ viewSettings:
|
|
4833
|
+
mixins: [Y],
|
|
4834
|
+
provide: () => ({ viewSettings: le }),
|
|
4835
4835
|
props: {
|
|
4836
4836
|
document: {
|
|
4837
4837
|
type: Object,
|
|
@@ -4886,14 +4886,14 @@ const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
|
|
|
4886
4886
|
},
|
|
4887
4887
|
computed: {
|
|
4888
4888
|
canDoActions() {
|
|
4889
|
-
return !!
|
|
4889
|
+
return !!B(this.document, "template.views.read.nodes", []).length;
|
|
4890
4890
|
},
|
|
4891
4891
|
canEdit() {
|
|
4892
4892
|
const { document: e } = this;
|
|
4893
4893
|
return this.view === "edit" && e && (e.id ? e.can("modify") : e.can("create")) && e.status !== "accepted";
|
|
4894
4894
|
},
|
|
4895
4895
|
doConsumeQuota() {
|
|
4896
|
-
const e =
|
|
4896
|
+
const e = B(this.document, "template.doConsumeDocumentQuota");
|
|
4897
4897
|
return typeof e == "boolean" ? e : !0;
|
|
4898
4898
|
}
|
|
4899
4899
|
},
|
|
@@ -4901,12 +4901,12 @@ const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
|
|
|
4901
4901
|
canEdit: {
|
|
4902
4902
|
immediate: !0,
|
|
4903
4903
|
handler(e) {
|
|
4904
|
-
|
|
4904
|
+
le.canEdit = !!e;
|
|
4905
4905
|
}
|
|
4906
4906
|
}
|
|
4907
4907
|
},
|
|
4908
4908
|
created() {
|
|
4909
|
-
this.setDocValue && (
|
|
4909
|
+
this.setDocValue && (le.setFormValue = this.setDocValue), this.removeDocValue && (le.removeFormValue = this.removeDocValue);
|
|
4910
4910
|
},
|
|
4911
4911
|
methods: {
|
|
4912
4912
|
async openSendModal() {
|
|
@@ -4919,7 +4919,7 @@ const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
|
|
|
4919
4919
|
},
|
|
4920
4920
|
async saveAsTemplate() {
|
|
4921
4921
|
this.document && this.$modal.show(
|
|
4922
|
-
|
|
4922
|
+
Ye,
|
|
4923
4923
|
{
|
|
4924
4924
|
document: this.document,
|
|
4925
4925
|
onSaveTemplate: this.onSaveTemplate,
|
|
@@ -4941,9 +4941,9 @@ const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
|
|
|
4941
4941
|
class: "flex w-screen flex-col bg-white"
|
|
4942
4942
|
}, Ns = { class: "flex self-center" }, Ws = { class: "buttons has-addons whitespace-nowrap" };
|
|
4943
4943
|
function js(e, t, n, s, i, o) {
|
|
4944
|
-
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("IsPremiumPreStep"),
|
|
4945
|
-
return n.document ? (
|
|
4946
|
-
c(
|
|
4944
|
+
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("IsPremiumPreStep"), k = m("RemainingTrialButton"), w = m("IsPremium"), T = m("DocumentFormContainer"), D = m("DocumentSend");
|
|
4945
|
+
return n.document ? (l(), p("div", Gs, [
|
|
4946
|
+
c(T, {
|
|
4947
4947
|
view: i.view,
|
|
4948
4948
|
"onUpdate:view": t[0] || (t[0] = (y) => i.view = y),
|
|
4949
4949
|
_document: n.document,
|
|
@@ -4955,17 +4955,17 @@ function js(e, t, n, s, i, o) {
|
|
|
4955
4955
|
"can-show-banner": n.canShowBanner
|
|
4956
4956
|
}, {
|
|
4957
4957
|
"nav-right": u(() => [
|
|
4958
|
-
c(
|
|
4958
|
+
c(w, null, {
|
|
4959
4959
|
default: u(({ canCreateDocument: y, canCreateTemplate: f }) => [
|
|
4960
4960
|
c(b, { feature: "documents" }, {
|
|
4961
4961
|
default: u(({ onClick: x }) => [
|
|
4962
|
-
(
|
|
4962
|
+
(l(), p("div", {
|
|
4963
4963
|
key: o.canDoActions,
|
|
4964
4964
|
class: "inline-flex flex-1 justify-end space-x-5"
|
|
4965
4965
|
}, [
|
|
4966
4966
|
c(b, { feature: "saveDocTemplate" }, {
|
|
4967
|
-
default: u(({ onClick:
|
|
4968
|
-
|
|
4967
|
+
default: u(({ onClick: I }) => [
|
|
4968
|
+
a("div", Ns, [
|
|
4969
4969
|
c(h, {
|
|
4970
4970
|
disabled: !o.canDoActions
|
|
4971
4971
|
}, {
|
|
@@ -4988,10 +4988,10 @@ function js(e, t, n, s, i, o) {
|
|
|
4988
4988
|
c(g, {
|
|
4989
4989
|
"icon-props": { stroke: "hsl(205, 100%, 50%)" },
|
|
4990
4990
|
"icon-left": "save",
|
|
4991
|
-
onClick: (
|
|
4991
|
+
onClick: (F) => y || n.document.id ? o.submitSave() : x({ callback: o.submitSave })
|
|
4992
4992
|
}, {
|
|
4993
4993
|
default: u(() => [
|
|
4994
|
-
|
|
4994
|
+
_(d(e.$t("_common:save", {
|
|
4995
4995
|
thing: e.$t("_common:document").toLowerCase()
|
|
4996
4996
|
})), 1)
|
|
4997
4997
|
]),
|
|
@@ -5000,12 +5000,12 @@ function js(e, t, n, s, i, o) {
|
|
|
5000
5000
|
c(g, {
|
|
5001
5001
|
disabled: n.isLoading,
|
|
5002
5002
|
"icon-left": "template-color",
|
|
5003
|
-
onClick: (
|
|
5003
|
+
onClick: (F) => f ? o.saveAsTemplate() : I({
|
|
5004
5004
|
callback: o.saveAsTemplate
|
|
5005
5005
|
})
|
|
5006
5006
|
}, {
|
|
5007
5007
|
default: u(() => [
|
|
5008
|
-
|
|
5008
|
+
_(d(e.$t("_common:saveAs", {
|
|
5009
5009
|
thing: e.$t("_common:template")
|
|
5010
5010
|
})), 1)
|
|
5011
5011
|
]),
|
|
@@ -5018,9 +5018,9 @@ function js(e, t, n, s, i, o) {
|
|
|
5018
5018
|
]),
|
|
5019
5019
|
_: 2
|
|
5020
5020
|
}, 1024),
|
|
5021
|
-
|
|
5022
|
-
c(
|
|
5023
|
-
|
|
5021
|
+
P(e.$slots, "nav-right-action", {}, () => [
|
|
5022
|
+
c(k),
|
|
5023
|
+
a("div", Ws, [
|
|
5024
5024
|
c(r, {
|
|
5025
5025
|
ref: "sendButton",
|
|
5026
5026
|
disabled: !o.canDoActions,
|
|
@@ -5031,7 +5031,7 @@ function js(e, t, n, s, i, o) {
|
|
|
5031
5031
|
type: "secondary",
|
|
5032
5032
|
icon: e.mq === "sm" ? "send" : "",
|
|
5033
5033
|
label: e.mq === "sm" ? "" : e.$t("_common:reviewSend"),
|
|
5034
|
-
onClick: (
|
|
5034
|
+
onClick: (I) => y || !o.doConsumeQuota || n.document.id ? o.openSendModal() : x({ callback: o.openSendModal })
|
|
5035
5035
|
}, null, 8, ["disabled", "loading", "class", "icon", "label", "onClick"])
|
|
5036
5036
|
])
|
|
5037
5037
|
])
|
|
@@ -5062,7 +5062,97 @@ function js(e, t, n, s, i, o) {
|
|
|
5062
5062
|
}, null, 8, ["_document", "set-form-value", "remove-form-value", "on-save-document"])
|
|
5063
5063
|
])) : v("", !0);
|
|
5064
5064
|
}
|
|
5065
|
-
const Zs = /* @__PURE__ */
|
|
5065
|
+
const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
5066
|
+
__name: "TemplateActionsDropdown",
|
|
5067
|
+
props: {
|
|
5068
|
+
template: {},
|
|
5069
|
+
tooltip: {}
|
|
5070
|
+
},
|
|
5071
|
+
emits: ["edit", "rename", "remove"],
|
|
5072
|
+
setup(e, { emit: t }) {
|
|
5073
|
+
const { t: n } = Ce, s = Q.baseUrl, i = e, o = t;
|
|
5074
|
+
function r() {
|
|
5075
|
+
o("edit", i.template.id);
|
|
5076
|
+
}
|
|
5077
|
+
function g() {
|
|
5078
|
+
o("rename", { template: i.template });
|
|
5079
|
+
}
|
|
5080
|
+
function h() {
|
|
5081
|
+
o("remove", { template: i.template });
|
|
5082
|
+
}
|
|
5083
|
+
async function b() {
|
|
5084
|
+
const k = `${s}/template/${i.template.id}`;
|
|
5085
|
+
await Ue(k) && we("info", n("copyMessage"));
|
|
5086
|
+
}
|
|
5087
|
+
return (k, w) => {
|
|
5088
|
+
const T = se("tooltip");
|
|
5089
|
+
return l(), C(U(de), {
|
|
5090
|
+
style: { top: "-8px", right: "-4px" },
|
|
5091
|
+
onClick: w[0] || (w[0] = Z(() => {
|
|
5092
|
+
}, ["stop"]))
|
|
5093
|
+
}, {
|
|
5094
|
+
trigger: u(() => [
|
|
5095
|
+
N(c(U(Oe), {
|
|
5096
|
+
icon: "more-vertical",
|
|
5097
|
+
type: "none",
|
|
5098
|
+
pattern: "tertiary",
|
|
5099
|
+
size: "small"
|
|
5100
|
+
}, null, 512), [
|
|
5101
|
+
[T, k.tooltip]
|
|
5102
|
+
])
|
|
5103
|
+
]),
|
|
5104
|
+
default: u(() => [
|
|
5105
|
+
c(U(G), {
|
|
5106
|
+
"icon-left": "template-color",
|
|
5107
|
+
onClick: r,
|
|
5108
|
+
"data-test": "edit-item"
|
|
5109
|
+
}, {
|
|
5110
|
+
default: u(() => [
|
|
5111
|
+
_(d(k.$t("_common:edit", { thing: k.$t("_common:template") })), 1)
|
|
5112
|
+
]),
|
|
5113
|
+
_: 1
|
|
5114
|
+
}),
|
|
5115
|
+
c(U(G), {
|
|
5116
|
+
"icon-props": { size: 16 },
|
|
5117
|
+
"icon-left": "edit",
|
|
5118
|
+
onClick: g,
|
|
5119
|
+
"data-test": "rename-item"
|
|
5120
|
+
}, {
|
|
5121
|
+
default: u(() => [
|
|
5122
|
+
_(d(k.$t("_common:change", { thing: k.$t("_common:name") })), 1)
|
|
5123
|
+
]),
|
|
5124
|
+
_: 1
|
|
5125
|
+
}),
|
|
5126
|
+
c(U(G), { separator: "" }),
|
|
5127
|
+
c(U(G), {
|
|
5128
|
+
"icon-props": { size: 16 },
|
|
5129
|
+
"icon-left": "link",
|
|
5130
|
+
onClick: b,
|
|
5131
|
+
"data-test": "copy-item"
|
|
5132
|
+
}, {
|
|
5133
|
+
default: u(() => [
|
|
5134
|
+
_(d(k.$t("_common:share", { thing: k.$t("_common:link") })), 1)
|
|
5135
|
+
]),
|
|
5136
|
+
_: 1
|
|
5137
|
+
}),
|
|
5138
|
+
c(U(G), { separator: "" }),
|
|
5139
|
+
c(U(G), {
|
|
5140
|
+
"icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" },
|
|
5141
|
+
"icon-left": "trash",
|
|
5142
|
+
onClick: h,
|
|
5143
|
+
"data-test": "remove-item"
|
|
5144
|
+
}, {
|
|
5145
|
+
default: u(() => [
|
|
5146
|
+
_(d(k.$t("_common:remove")), 1)
|
|
5147
|
+
]),
|
|
5148
|
+
_: 1
|
|
5149
|
+
})
|
|
5150
|
+
]),
|
|
5151
|
+
_: 1
|
|
5152
|
+
});
|
|
5153
|
+
};
|
|
5154
|
+
}
|
|
5155
|
+
}), Qs = {
|
|
5066
5156
|
name: "DocumentFormRecent",
|
|
5067
5157
|
i18nOptions: {
|
|
5068
5158
|
namespaces: "DocumentFormRecent",
|
|
@@ -5078,8 +5168,8 @@ const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
|
|
|
5078
5168
|
}
|
|
5079
5169
|
},
|
|
5080
5170
|
components: {
|
|
5081
|
-
IsPremium:
|
|
5082
|
-
IsPremiumPreStep:
|
|
5171
|
+
IsPremium: te,
|
|
5172
|
+
IsPremiumPreStep: ee,
|
|
5083
5173
|
CSkeleton: nn
|
|
5084
5174
|
},
|
|
5085
5175
|
emits: ["save-template", "use-doc-template"],
|
|
@@ -5093,7 +5183,7 @@ const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
|
|
|
5093
5183
|
};
|
|
5094
5184
|
},
|
|
5095
5185
|
computed: {
|
|
5096
|
-
...
|
|
5186
|
+
...H({
|
|
5097
5187
|
docById: "documents2/byId"
|
|
5098
5188
|
})
|
|
5099
5189
|
},
|
|
@@ -5101,8 +5191,8 @@ const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
|
|
|
5101
5191
|
this.onLoadDocuments();
|
|
5102
5192
|
},
|
|
5103
5193
|
methods: {
|
|
5104
|
-
...
|
|
5105
|
-
loadDocument:
|
|
5194
|
+
...K({
|
|
5195
|
+
loadDocument: M.LOAD_DOCUMENT2
|
|
5106
5196
|
}),
|
|
5107
5197
|
async onInput() {
|
|
5108
5198
|
this.isLoading = !0, this.onLoadDocuments();
|
|
@@ -5137,7 +5227,7 @@ const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
|
|
|
5137
5227
|
}), { items: i = [] } = s || {};
|
|
5138
5228
|
return i;
|
|
5139
5229
|
},
|
|
5140
|
-
onLoadDocuments:
|
|
5230
|
+
onLoadDocuments: ke(async function() {
|
|
5141
5231
|
this.isLoading = !0, this.hasItems = !0;
|
|
5142
5232
|
const t = await this.fetchDocuments();
|
|
5143
5233
|
(!t || !t.length) && (this.canFetchMore = !1), this.list = [...t || []], this.isLoading = !1;
|
|
@@ -5151,31 +5241,31 @@ const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
|
|
|
5151
5241
|
return this.$emit("use-doc-template", { documentId: e });
|
|
5152
5242
|
}
|
|
5153
5243
|
}
|
|
5154
|
-
},
|
|
5244
|
+
}, Ys = {
|
|
5155
5245
|
class: "flex w-full",
|
|
5156
5246
|
style: { "padding-bottom": "1em" }
|
|
5157
|
-
},
|
|
5247
|
+
}, Js = { class: "recent-list" }, Xs = {
|
|
5158
5248
|
key: 1,
|
|
5159
5249
|
class: "rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400",
|
|
5160
5250
|
style: { "font-size": "15px" }
|
|
5161
|
-
},
|
|
5251
|
+
}, ea = {
|
|
5162
5252
|
key: 2,
|
|
5163
5253
|
class: "text-center text-gray-400",
|
|
5164
5254
|
style: { padding: "1em" }
|
|
5165
|
-
},
|
|
5255
|
+
}, ta = ["onClick", "onMouseoverPassive"], na = {
|
|
5166
5256
|
key: 0,
|
|
5167
5257
|
style: { display: "inline-flex", "align-items": "center", position: "absolute", right: "1em", top: "50%", transform: "translateY(-50%)" }
|
|
5168
5258
|
};
|
|
5169
|
-
function
|
|
5170
|
-
const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"), b = m("IsPremiumPreStep"),
|
|
5171
|
-
return
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
i.hasItems ? (
|
|
5259
|
+
function ia(e, t, n, s, i, o) {
|
|
5260
|
+
const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"), b = m("IsPremiumPreStep"), k = m("IsPremium");
|
|
5261
|
+
return l(), p("div", null, [
|
|
5262
|
+
a("div", Ys, [
|
|
5263
|
+
P(e.$slots, "default", {}, void 0, !0),
|
|
5264
|
+
i.hasItems ? (l(), C(r, {
|
|
5175
5265
|
key: 0,
|
|
5176
5266
|
modelValue: i.query,
|
|
5177
5267
|
"onUpdate:modelValue": [
|
|
5178
|
-
t[0] || (t[0] = (
|
|
5268
|
+
t[0] || (t[0] = (w) => i.query = w),
|
|
5179
5269
|
o.onInput
|
|
5180
5270
|
],
|
|
5181
5271
|
loading: i.isLoading,
|
|
@@ -5186,9 +5276,9 @@ function nl(e, t, n, s, i, o) {
|
|
|
5186
5276
|
class: "hidden md:flex"
|
|
5187
5277
|
}, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) : v("", !0)
|
|
5188
5278
|
]),
|
|
5189
|
-
|
|
5190
|
-
i.isLoading && !i.list.length ? (
|
|
5191
|
-
key:
|
|
5279
|
+
a("div", Js, [
|
|
5280
|
+
i.isLoading && !i.list.length ? (l(), p(S, { key: 0 }, A(3, (w) => a("div", {
|
|
5281
|
+
key: w,
|
|
5192
5282
|
class: "recent-item placeholder"
|
|
5193
5283
|
}, [
|
|
5194
5284
|
c(g, {
|
|
@@ -5196,36 +5286,36 @@ function nl(e, t, n, s, i, o) {
|
|
|
5196
5286
|
class: "recent-item-name"
|
|
5197
5287
|
}),
|
|
5198
5288
|
c(g, { width: "35%" })
|
|
5199
|
-
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (
|
|
5200
|
-
default: u(({ canCreateTemplate:
|
|
5289
|
+
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (l(), p("div", Xs, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (l(), p("div", ea, d(e.$t("noResults")), 1)) : (l(), C(k, { key: 3 }, {
|
|
5290
|
+
default: u(({ canCreateTemplate: w, canUseTemplate: T }) => [
|
|
5201
5291
|
c(b, { feature: "useDocTemplate" }, {
|
|
5202
5292
|
default: u(({ onClick: D }) => [
|
|
5203
|
-
|
|
5204
|
-
(
|
|
5293
|
+
a("div", null, [
|
|
5294
|
+
(l(!0), p(S, null, A(i.list, (y, f) => (l(), p("div", {
|
|
5205
5295
|
key: y._id,
|
|
5206
5296
|
class: "recent-item",
|
|
5207
|
-
onClick: (x) =>
|
|
5297
|
+
onClick: (x) => T ? o.onUseDocTemplate(y._id) : D({
|
|
5208
5298
|
callback: () => o.onUseDocTemplate(y._id)
|
|
5209
5299
|
}),
|
|
5210
5300
|
onMouseoverPassive: (x) => i.hoverIndex = f,
|
|
5211
5301
|
onMouseleavePassive: t[1] || (t[1] = (x) => i.hoverIndex = null)
|
|
5212
5302
|
}, [
|
|
5213
|
-
|
|
5303
|
+
a("div", {
|
|
5214
5304
|
class: L([{ "text-gray-400": !y.data.name }, "recent-item-name"])
|
|
5215
5305
|
}, d(y.data.name || e.$t("_common:untitled")), 3),
|
|
5216
|
-
|
|
5217
|
-
i.hoverIndex === f ? (
|
|
5306
|
+
a("div", null, d(e.$formatDistanceToNow(y.createdAt)), 1),
|
|
5307
|
+
i.hoverIndex === f ? (l(), p("div", na, [
|
|
5218
5308
|
c(b, { feature: "saveDocTemplate" }, {
|
|
5219
5309
|
default: u(({ onClick: x }) => [
|
|
5220
5310
|
c(h, {
|
|
5221
5311
|
style: { "margin-left": "1em" },
|
|
5222
5312
|
size: "small",
|
|
5223
|
-
onClick:
|
|
5313
|
+
onClick: Z((I) => w ? o.onSaveDocumentTemplate(y._id) : x({
|
|
5224
5314
|
callback: () => o.onSaveDocumentTemplate(y._id)
|
|
5225
5315
|
}), ["stop"])
|
|
5226
5316
|
}, {
|
|
5227
5317
|
default: u(() => [
|
|
5228
|
-
|
|
5318
|
+
_(d(e.$t("_common:saveAs", { thing: e.$t("_common:template") })), 1)
|
|
5229
5319
|
]),
|
|
5230
5320
|
_: 2
|
|
5231
5321
|
}, 1032, ["onClick"])
|
|
@@ -5238,12 +5328,12 @@ function nl(e, t, n, s, i, o) {
|
|
|
5238
5328
|
type: "secondary"
|
|
5239
5329
|
}, {
|
|
5240
5330
|
default: u(() => [
|
|
5241
|
-
|
|
5331
|
+
_(d(e.$t("_common:use", { thing: e.$t("_common:template") })), 1)
|
|
5242
5332
|
]),
|
|
5243
5333
|
_: 1
|
|
5244
5334
|
})
|
|
5245
5335
|
])) : v("", !0)
|
|
5246
|
-
], 40,
|
|
5336
|
+
], 40, ta))), 128))
|
|
5247
5337
|
])
|
|
5248
5338
|
]),
|
|
5249
5339
|
_: 2
|
|
@@ -5254,13 +5344,13 @@ function nl(e, t, n, s, i, o) {
|
|
|
5254
5344
|
])
|
|
5255
5345
|
]);
|
|
5256
5346
|
}
|
|
5257
|
-
const
|
|
5347
|
+
const oa = /* @__PURE__ */ $(Qs, [["render", ia], ["__scopeId", "data-v-afd30dd3"]]), sa = { class: "item-paper" }, aa = {
|
|
5258
5348
|
key: 2,
|
|
5259
5349
|
class: "absolute bottom-2 right-2"
|
|
5260
|
-
},
|
|
5350
|
+
}, la = {
|
|
5261
5351
|
key: 3,
|
|
5262
5352
|
class: "add-button"
|
|
5263
|
-
},
|
|
5353
|
+
}, ra = { class: "item-footer" }, da = ["textContent"], ca = ["textContent"], ua = /* @__PURE__ */ ce({
|
|
5264
5354
|
__name: "DocumentIcon",
|
|
5265
5355
|
props: {
|
|
5266
5356
|
isPlaceholder: { type: Boolean, default: !1 },
|
|
@@ -5272,13 +5362,13 @@ const il = /* @__PURE__ */ F(Ks, [["render", nl], ["__scopeId", "data-v-afd30dd3
|
|
|
5272
5362
|
},
|
|
5273
5363
|
emits: ["triggerOpenTemplate"],
|
|
5274
5364
|
setup(e, { emit: t }) {
|
|
5275
|
-
const n = e, s = t, i = () => s("triggerOpenTemplate"), o = kt(), r = wt(), g =
|
|
5276
|
-
() =>
|
|
5277
|
-
), D =
|
|
5365
|
+
const n = e, s = t, i = () => s("triggerOpenTemplate"), o = kt(), r = wt(), g = q(() => r.style), h = q(() => r.staticClass), b = q(() => r.class), k = q(() => r.key), w = q(() => r.attrs), T = q(
|
|
5366
|
+
() => Ce.t("_common:empty", { thing: Ce.t("_common:template") })
|
|
5367
|
+
), D = q(() => _t(n.name, 60));
|
|
5278
5368
|
return (y, f) => {
|
|
5279
5369
|
const x = m("CIcon");
|
|
5280
|
-
return
|
|
5281
|
-
key:
|
|
5370
|
+
return l(), p("div", be(w.value, {
|
|
5371
|
+
key: k.value,
|
|
5282
5372
|
class: [[
|
|
5283
5373
|
h.value,
|
|
5284
5374
|
b.value,
|
|
@@ -5291,22 +5381,22 @@ const il = /* @__PURE__ */ F(Ks, [["render", nl], ["__scopeId", "data-v-afd30dd3
|
|
|
5291
5381
|
style: g.value,
|
|
5292
5382
|
onClick: i
|
|
5293
5383
|
}), [
|
|
5294
|
-
|
|
5295
|
-
y.thumbnail ? (
|
|
5384
|
+
a("div", sa, [
|
|
5385
|
+
y.thumbnail ? (l(), p("div", {
|
|
5296
5386
|
key: 0,
|
|
5297
|
-
style:
|
|
5387
|
+
style: R([{
|
|
5298
5388
|
backgroundImage: `url(${y.thumbnail})`
|
|
5299
5389
|
}, { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }])
|
|
5300
|
-
}, null, 4)) : y.isPlaceholder || y.isAdd ? v("", !0) : (
|
|
5390
|
+
}, null, 4)) : y.isPlaceholder || y.isAdd ? v("", !0) : (l(), C(on, {
|
|
5301
5391
|
key: 1,
|
|
5302
5392
|
media: y.media,
|
|
5303
5393
|
preview: "",
|
|
5304
5394
|
class: "item-media"
|
|
5305
5395
|
}, null, 8, ["media"])),
|
|
5306
|
-
|
|
5307
|
-
|
|
5396
|
+
U(o).badge ? (l(), p("div", aa, [
|
|
5397
|
+
P(y.$slots, "badge", {}, void 0, !0)
|
|
5308
5398
|
])) : v("", !0),
|
|
5309
|
-
y.isAdd ? (
|
|
5399
|
+
y.isAdd ? (l(), p("div", la, [
|
|
5310
5400
|
c(x, {
|
|
5311
5401
|
size: 18,
|
|
5312
5402
|
"stroke-width": 3,
|
|
@@ -5314,27 +5404,27 @@ const il = /* @__PURE__ */ F(Ks, [["render", nl], ["__scopeId", "data-v-afd30dd3
|
|
|
5314
5404
|
})
|
|
5315
5405
|
])) : v("", !0)
|
|
5316
5406
|
]),
|
|
5317
|
-
|
|
5318
|
-
y.isAdd ? (
|
|
5407
|
+
a("div", ra, [
|
|
5408
|
+
y.isAdd ? (l(), p("div", {
|
|
5319
5409
|
key: 0,
|
|
5320
5410
|
class: "item-text",
|
|
5321
5411
|
style: { color: "hsl(0, 0%, 55%)" },
|
|
5322
|
-
textContent: d(
|
|
5323
|
-
}, null, 8,
|
|
5324
|
-
|
|
5412
|
+
textContent: d(T.value)
|
|
5413
|
+
}, null, 8, da)) : y.name ? (l(), p(S, { key: 1 }, [
|
|
5414
|
+
a("div", {
|
|
5325
5415
|
class: "item-text",
|
|
5326
5416
|
textContent: d(D.value)
|
|
5327
|
-
}, null, 8,
|
|
5328
|
-
|
|
5417
|
+
}, null, 8, ca),
|
|
5418
|
+
P(y.$slots, "default", {}, void 0, !0)
|
|
5329
5419
|
], 64)) : v("", !0)
|
|
5330
5420
|
])
|
|
5331
5421
|
], 16);
|
|
5332
5422
|
};
|
|
5333
5423
|
}
|
|
5334
|
-
}),
|
|
5424
|
+
}), ma = /* @__PURE__ */ $(ua, [["__scopeId", "data-v-f3357197"]]), pa = {
|
|
5335
5425
|
name: "HorizontalScroll",
|
|
5336
5426
|
components: {
|
|
5337
|
-
Simplebar:
|
|
5427
|
+
Simplebar: X
|
|
5338
5428
|
},
|
|
5339
5429
|
emits: ["expand"],
|
|
5340
5430
|
data() {
|
|
@@ -5383,20 +5473,20 @@ const il = /* @__PURE__ */ F(Ks, [["render", nl], ["__scopeId", "data-v-afd30dd3
|
|
|
5383
5473
|
}, 50);
|
|
5384
5474
|
}
|
|
5385
5475
|
}
|
|
5386
|
-
},
|
|
5476
|
+
}, ha = {
|
|
5387
5477
|
ref: "container",
|
|
5388
5478
|
class: "horizontal-scroll"
|
|
5389
|
-
},
|
|
5390
|
-
function
|
|
5479
|
+
}, fa = { class: "hl-navigation" }, ga = { class: "hl-container" }, ya = { class: "flex w-full" };
|
|
5480
|
+
function va(e, t, n, s, i, o) {
|
|
5391
5481
|
const r = m("CButton"), g = m("Simplebar");
|
|
5392
|
-
return
|
|
5393
|
-
|
|
5394
|
-
i.hasPrev ? (
|
|
5482
|
+
return l(), p("div", ha, [
|
|
5483
|
+
a("div", fa, [
|
|
5484
|
+
i.hasPrev ? (l(), p("div", {
|
|
5395
5485
|
key: 0,
|
|
5396
5486
|
class: "hl-btn-left max-sm:hidden",
|
|
5397
5487
|
onClick: t[0] || (t[0] = (h) => o.go(-1))
|
|
5398
5488
|
}, [
|
|
5399
|
-
|
|
5489
|
+
P(e.$slots, "nav-prev", {}, () => [
|
|
5400
5490
|
c(r, {
|
|
5401
5491
|
"icon-props": { size: 22 },
|
|
5402
5492
|
icon: "chevron-left",
|
|
@@ -5406,12 +5496,12 @@ function yl(e, t, n, s, i, o) {
|
|
|
5406
5496
|
})
|
|
5407
5497
|
], !0)
|
|
5408
5498
|
])) : v("", !0),
|
|
5409
|
-
i.hasNext ? (
|
|
5499
|
+
i.hasNext ? (l(), p("div", {
|
|
5410
5500
|
key: 1,
|
|
5411
5501
|
class: "hl-btn-right max-sm:hidden",
|
|
5412
5502
|
onClick: t[2] || (t[2] = (h) => o.go(1))
|
|
5413
5503
|
}, [
|
|
5414
|
-
|
|
5504
|
+
P(e.$slots, "nav-prev", {}, () => [
|
|
5415
5505
|
c(r, {
|
|
5416
5506
|
"icon-props": { size: 22 },
|
|
5417
5507
|
icon: "chevron-right",
|
|
@@ -5423,15 +5513,15 @@ function yl(e, t, n, s, i, o) {
|
|
|
5423
5513
|
], !0)
|
|
5424
5514
|
])) : v("", !0)
|
|
5425
5515
|
]),
|
|
5426
|
-
|
|
5516
|
+
a("div", ga, [
|
|
5427
5517
|
c(g, {
|
|
5428
5518
|
ref: "list",
|
|
5429
5519
|
class: "hl-list",
|
|
5430
5520
|
onScroll: o.scrollHandler
|
|
5431
5521
|
}, {
|
|
5432
5522
|
default: u(() => [
|
|
5433
|
-
|
|
5434
|
-
|
|
5523
|
+
a("div", ya, [
|
|
5524
|
+
P(e.$slots, "default", {}, void 0, !0)
|
|
5435
5525
|
])
|
|
5436
5526
|
]),
|
|
5437
5527
|
_: 3
|
|
@@ -5439,12 +5529,12 @@ function yl(e, t, n, s, i, o) {
|
|
|
5439
5529
|
])
|
|
5440
5530
|
], 512);
|
|
5441
5531
|
}
|
|
5442
|
-
const
|
|
5443
|
-
function
|
|
5532
|
+
const Ca = /* @__PURE__ */ $(pa, [["render", va], ["__scopeId", "data-v-f0c49197"]]);
|
|
5533
|
+
function ba(e, { availableProducts: t }) {
|
|
5444
5534
|
if (!e) throw new Error("Missing parameter templateId");
|
|
5445
5535
|
const n = t, s = Object.keys(n).find((i) => {
|
|
5446
5536
|
var r;
|
|
5447
|
-
const o =
|
|
5537
|
+
const o = B(
|
|
5448
5538
|
n[i],
|
|
5449
5539
|
"metadata.companyPurchase"
|
|
5450
5540
|
);
|
|
@@ -5452,7 +5542,7 @@ function Cl(e, { availableProducts: t }) {
|
|
|
5452
5542
|
});
|
|
5453
5543
|
return s ? n[s] : null;
|
|
5454
5544
|
}
|
|
5455
|
-
async function
|
|
5545
|
+
async function ka(e) {
|
|
5456
5546
|
if (!e) throw new Error("Missing argument stripeProduct");
|
|
5457
5547
|
const t = e == null ? void 0 : e.prices[0], { data: n } = await xt.createCheckoutSession({
|
|
5458
5548
|
items: [
|
|
@@ -5461,15 +5551,15 @@ async function bl(e) {
|
|
|
5461
5551
|
quantity: 1
|
|
5462
5552
|
}
|
|
5463
5553
|
],
|
|
5464
|
-
successUrl: `${
|
|
5554
|
+
successUrl: `${Q.baseUrl}/purchase/success`
|
|
5465
5555
|
// cancelUrl: window.location.href
|
|
5466
5556
|
}), { redirectUrl: s } = n;
|
|
5467
5557
|
window.open(s, "_blank");
|
|
5468
5558
|
}
|
|
5469
|
-
function
|
|
5559
|
+
function Je(e, { availableProducts: t }) {
|
|
5470
5560
|
var i, o, r;
|
|
5471
5561
|
let n = null;
|
|
5472
|
-
const s =
|
|
5562
|
+
const s = ba(e.templateId, {
|
|
5473
5563
|
availableProducts: t
|
|
5474
5564
|
});
|
|
5475
5565
|
return s && (n = {
|
|
@@ -5477,16 +5567,16 @@ function Ye(e, { availableProducts: t }) {
|
|
|
5477
5567
|
currency: (o = s == null ? void 0 : s.prices) == null ? void 0 : o[0].currency
|
|
5478
5568
|
}),
|
|
5479
5569
|
isPurchased: ((r = e.purchaseInfo) == null ? void 0 : r.isPurchased) || !1,
|
|
5480
|
-
onBuy: async () =>
|
|
5570
|
+
onBuy: async () => ka(s)
|
|
5481
5571
|
}), n;
|
|
5482
5572
|
}
|
|
5483
|
-
const
|
|
5573
|
+
const wa = {
|
|
5484
5574
|
name: "GalleryTemplateModal",
|
|
5485
5575
|
components: {
|
|
5486
|
-
Simplebar:
|
|
5576
|
+
Simplebar: X,
|
|
5487
5577
|
DocumentLayout: Ht,
|
|
5488
|
-
IsPremium:
|
|
5489
|
-
IsPremiumPreStep:
|
|
5578
|
+
IsPremium: te,
|
|
5579
|
+
IsPremiumPreStep: ee
|
|
5490
5580
|
},
|
|
5491
5581
|
emits: ["use-template", "close"],
|
|
5492
5582
|
props: {
|
|
@@ -5549,13 +5639,13 @@ const kl = {
|
|
|
5549
5639
|
};
|
|
5550
5640
|
},
|
|
5551
5641
|
computed: {
|
|
5552
|
-
...
|
|
5642
|
+
...H({
|
|
5553
5643
|
isLoading: "templates/isPosting",
|
|
5554
5644
|
stripeProducts: "stripe/products",
|
|
5555
5645
|
isSuperUser: "application/isSuperUser"
|
|
5556
5646
|
}),
|
|
5557
5647
|
previewDocument() {
|
|
5558
|
-
const { data: e, defaultData: t } = this.template, n = new
|
|
5648
|
+
const { data: e, defaultData: t } = this.template, n = new qe({
|
|
5559
5649
|
data: {
|
|
5560
5650
|
...t,
|
|
5561
5651
|
template: e,
|
|
@@ -5583,7 +5673,7 @@ const kl = {
|
|
|
5583
5673
|
isVisibleApp: !0,
|
|
5584
5674
|
includePurchaseInfo: !0
|
|
5585
5675
|
}, r = await this.fetchGallery(o);
|
|
5586
|
-
this.privateProduct =
|
|
5676
|
+
this.privateProduct = Je(
|
|
5587
5677
|
r[0],
|
|
5588
5678
|
{ availableProducts: this.stripeProducts }
|
|
5589
5679
|
);
|
|
@@ -5615,37 +5705,37 @@ const kl = {
|
|
|
5615
5705
|
this.template && typeof this.onSaveTemplate == "function" && (this.didSave = await this.onSaveTemplate(this.template));
|
|
5616
5706
|
},
|
|
5617
5707
|
async copyToClipboard(e) {
|
|
5618
|
-
const t = `${
|
|
5619
|
-
await Ue(t) &&
|
|
5708
|
+
const t = `${Q.baseUrl}/template/${e}`;
|
|
5709
|
+
await Ue(t) && we("info", this.$t("copyMessage"));
|
|
5620
5710
|
}
|
|
5621
5711
|
}
|
|
5622
|
-
},
|
|
5712
|
+
}, _a = { class: "template-modal font-inter bg-gray-200" }, xa = { style: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": `rgb(244, 244, 244) 0px 2px 14px 0px inset,
|
|
5623
5713
|
rgba(0, 0, 0, 0.09) 0px 8px 35px 0px,
|
|
5624
|
-
rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset`, flex: "1 1 auto", "min-height": "0" } },
|
|
5714
|
+
rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset`, flex: "1 1 auto", "min-height": "0" } }, Ta = { style: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, Da = { style: { "padding-bottom": "2em" } }, Sa = { style: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, Ia = { style: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, $a = { style: { hyphens: "auto" } }, Fa = {
|
|
5625
5715
|
key: 0,
|
|
5626
5716
|
style: { "padding-top": "1.5em" },
|
|
5627
5717
|
class: "flex items-center"
|
|
5628
|
-
},
|
|
5718
|
+
}, La = { style: { "margin-left": "0.5em" } }, Va = { style: { "font-weight": "500" } }, Ba = { style: { "font-weight": "400", "font-size": "14px" } }, Ma = { style: { "padding-bottom": "2em" } }, Pa = {
|
|
5629
5719
|
key: 0,
|
|
5630
5720
|
class: "mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm"
|
|
5631
|
-
},
|
|
5632
|
-
function
|
|
5633
|
-
var
|
|
5634
|
-
const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"), b = m("CButton"),
|
|
5635
|
-
return
|
|
5636
|
-
|
|
5721
|
+
}, Aa = { class: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, Ea = ["textContent"], za = ["textContent"];
|
|
5722
|
+
function Ra(e, t, n, s, i, o) {
|
|
5723
|
+
var T;
|
|
5724
|
+
const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"), b = m("CButton"), k = m("IsPremiumPreStep"), w = m("IsPremium");
|
|
5725
|
+
return l(), p("div", _a, [
|
|
5726
|
+
a("div", xa, [
|
|
5637
5727
|
c(g, {
|
|
5638
5728
|
class: "h-full w-full",
|
|
5639
5729
|
"data-simplebar-auto-hide": "false"
|
|
5640
5730
|
}, {
|
|
5641
5731
|
default: u(() => [
|
|
5642
|
-
o.previewDocument ? (
|
|
5732
|
+
o.previewDocument ? (l(), C(r, {
|
|
5643
5733
|
key: 0,
|
|
5644
5734
|
document: o.previewDocument
|
|
5645
5735
|
}, null, 8, ["document"])) : v("", !0),
|
|
5646
|
-
n.product && !i.privateProduct.isPurchased ? (
|
|
5736
|
+
n.product && !i.privateProduct.isPurchased ? (l(), C(j("style"), { key: 1 }, {
|
|
5647
5737
|
default: u(() => t[1] || (t[1] = [
|
|
5648
|
-
|
|
5738
|
+
_(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")
|
|
5649
5739
|
])),
|
|
5650
5740
|
_: 1
|
|
5651
5741
|
})) : v("", !0)
|
|
@@ -5653,50 +5743,50 @@ function zl(e, t, n, s, i, o) {
|
|
|
5653
5743
|
_: 1
|
|
5654
5744
|
})
|
|
5655
5745
|
]),
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
(
|
|
5661
|
-
|
|
5746
|
+
a("div", Ta, [
|
|
5747
|
+
a("div", Da, [
|
|
5748
|
+
a("div", Sa, d(n.meta.name), 1),
|
|
5749
|
+
a("div", Ia, [
|
|
5750
|
+
(T = i.templateStat) != null && T.usedTimes ? (l(), p(S, { key: 0 }, [
|
|
5751
|
+
_(d(e.$t("_common:used").capitalize()) + " " + d(i.templateStat.usedTimes) + " " + d(e.$t("_common:times", { count: i.templateStat.usedTimes })), 1)
|
|
5662
5752
|
], 64)) : v("", !0)
|
|
5663
5753
|
]),
|
|
5664
|
-
|
|
5665
|
-
n.meta.author ? (
|
|
5666
|
-
|
|
5667
|
-
style:
|
|
5754
|
+
a("div", $a, d(n.meta.text), 1),
|
|
5755
|
+
n.meta.author ? (l(), p("div", Fa, [
|
|
5756
|
+
a("div", {
|
|
5757
|
+
style: R([{ "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, {
|
|
5668
5758
|
backgroundImage: `url(${n.meta.author.avatar})`
|
|
5669
5759
|
}])
|
|
5670
5760
|
}, null, 4),
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
n.meta.author.templatesCount ? (
|
|
5675
|
-
|
|
5676
|
-
], 64)) : (
|
|
5677
|
-
|
|
5761
|
+
a("div", La, [
|
|
5762
|
+
a("div", Va, d(n.meta.author.name), 1),
|
|
5763
|
+
a("div", Ba, [
|
|
5764
|
+
n.meta.author.templatesCount ? (l(), p(S, { key: 0 }, [
|
|
5765
|
+
_(d(n.meta.author.templatesCount) + " " + d(e.$t("_common:template", { count: n.meta.author.templatesCount })), 1)
|
|
5766
|
+
], 64)) : (l(), p(S, { key: 1 }, [
|
|
5767
|
+
_(d(e.$t("_common:template").capitalize()), 1)
|
|
5678
5768
|
], 64))
|
|
5679
5769
|
])
|
|
5680
5770
|
])
|
|
5681
5771
|
])) : v("", !0)
|
|
5682
5772
|
]),
|
|
5683
|
-
|
|
5684
|
-
n.product ? (
|
|
5685
|
-
i.privateProduct.isPurchased ? (
|
|
5686
|
-
|
|
5773
|
+
a("div", Ma, [
|
|
5774
|
+
n.product ? (l(), p(S, { key: 0 }, [
|
|
5775
|
+
i.privateProduct.isPurchased ? (l(), p("div", Pa, [
|
|
5776
|
+
a("div", Aa, [
|
|
5687
5777
|
c(h, {
|
|
5688
5778
|
type: "check",
|
|
5689
5779
|
size: "12",
|
|
5690
5780
|
class: "text-white"
|
|
5691
5781
|
})
|
|
5692
5782
|
]),
|
|
5693
|
-
|
|
5783
|
+
a("div", {
|
|
5694
5784
|
class: "text-xs font-medium text-gray-700",
|
|
5695
5785
|
textContent: d(
|
|
5696
5786
|
e.$t("_common:purchased", { thing: e.$t("_common:template") })
|
|
5697
5787
|
)
|
|
5698
|
-
}, null, 8,
|
|
5699
|
-
])) : (
|
|
5788
|
+
}, null, 8, Ea)
|
|
5789
|
+
])) : (l(), C(b, {
|
|
5700
5790
|
key: 1,
|
|
5701
5791
|
type: "secondary",
|
|
5702
5792
|
wide: "",
|
|
@@ -5705,20 +5795,20 @@ function zl(e, t, n, s, i, o) {
|
|
|
5705
5795
|
onClick: o.buyTemplate
|
|
5706
5796
|
}, {
|
|
5707
5797
|
default: u(() => [
|
|
5708
|
-
|
|
5709
|
-
|
|
5798
|
+
a("div", null, d(e.$t("_common:buy", { thing: e.$t("_common:template") })), 1),
|
|
5799
|
+
a("div", {
|
|
5710
5800
|
class: "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",
|
|
5711
5801
|
textContent: d(i.privateProduct.price)
|
|
5712
|
-
}, null, 8,
|
|
5802
|
+
}, null, 8, za)
|
|
5713
5803
|
]),
|
|
5714
5804
|
_: 1
|
|
5715
5805
|
}, 8, ["onClick"]))
|
|
5716
5806
|
], 64)) : v("", !0),
|
|
5717
|
-
c(
|
|
5807
|
+
c(w, null, {
|
|
5718
5808
|
default: u(({ canUseTemplate: D }) => [
|
|
5719
|
-
c(
|
|
5809
|
+
c(k, { feature: "useDocTemplate" }, {
|
|
5720
5810
|
default: u(({ onClick: y }) => [
|
|
5721
|
-
!n.product || i.privateProduct.isPurchased ? (
|
|
5811
|
+
!n.product || i.privateProduct.isPurchased ? (l(), C(b, {
|
|
5722
5812
|
key: 0,
|
|
5723
5813
|
disabled: n.product ? !i.privateProduct.isPurchased : !1,
|
|
5724
5814
|
type: "secondary",
|
|
@@ -5727,7 +5817,7 @@ function zl(e, t, n, s, i, o) {
|
|
|
5727
5817
|
onClick: (f) => n.isPublicForm || D ? o.useSelectedTemplate() : y({ callback: o.useSelectedTemplate })
|
|
5728
5818
|
}, {
|
|
5729
5819
|
default: u(() => [
|
|
5730
|
-
|
|
5820
|
+
_(d(e.$t("_common:use", { thing: e.$t("_common:template") })), 1)
|
|
5731
5821
|
]),
|
|
5732
5822
|
_: 2
|
|
5733
5823
|
}, 1032, ["disabled", "onClick"])) : v("", !0)
|
|
@@ -5737,13 +5827,13 @@ function zl(e, t, n, s, i, o) {
|
|
|
5737
5827
|
]),
|
|
5738
5828
|
_: 1
|
|
5739
5829
|
}),
|
|
5740
|
-
c(
|
|
5830
|
+
c(w, null, {
|
|
5741
5831
|
default: u(({ canCreateTemplate: D }) => [
|
|
5742
|
-
c(
|
|
5832
|
+
c(k, { feature: "saveDocTemplate" }, {
|
|
5743
5833
|
default: u(({ onClick: y }) => {
|
|
5744
5834
|
var f;
|
|
5745
5835
|
return [
|
|
5746
|
-
(n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (
|
|
5836
|
+
(n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (l(), C(b, {
|
|
5747
5837
|
key: 0,
|
|
5748
5838
|
loading: e.isLoading,
|
|
5749
5839
|
type: i.didSave ? "success" : "none",
|
|
@@ -5753,7 +5843,7 @@ function zl(e, t, n, s, i, o) {
|
|
|
5753
5843
|
onClick: (x) => i.didSave ? null : n.isPublicForm || D ? o.saveAsTemplate() : y({ callback: o.saveAsTemplate })
|
|
5754
5844
|
}, {
|
|
5755
5845
|
default: u(() => [
|
|
5756
|
-
|
|
5846
|
+
_(d(i.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })), 1)
|
|
5757
5847
|
]),
|
|
5758
5848
|
_: 2
|
|
5759
5849
|
}, 1032, ["loading", "type", "icon-left", "onClick"])) : v("", !0)
|
|
@@ -5764,7 +5854,7 @@ function zl(e, t, n, s, i, o) {
|
|
|
5764
5854
|
]),
|
|
5765
5855
|
_: 1
|
|
5766
5856
|
}),
|
|
5767
|
-
o.allowCopyTemplateLink ? (
|
|
5857
|
+
o.allowCopyTemplateLink ? (l(), C(b, {
|
|
5768
5858
|
key: 1,
|
|
5769
5859
|
type: "none",
|
|
5770
5860
|
"icon-left": "link",
|
|
@@ -5772,7 +5862,7 @@ function zl(e, t, n, s, i, o) {
|
|
|
5772
5862
|
onClick: t[0] || (t[0] = (D) => o.copyToClipboard(n.template.id))
|
|
5773
5863
|
}, {
|
|
5774
5864
|
default: u(() => [
|
|
5775
|
-
|
|
5865
|
+
_(d(e.$t("_common:share", { thing: e.$t("_common:link") })), 1)
|
|
5776
5866
|
]),
|
|
5777
5867
|
_: 1
|
|
5778
5868
|
})) : v("", !0)
|
|
@@ -5780,7 +5870,7 @@ function zl(e, t, n, s, i, o) {
|
|
|
5780
5870
|
])
|
|
5781
5871
|
]);
|
|
5782
5872
|
}
|
|
5783
|
-
const
|
|
5873
|
+
const Oa = /* @__PURE__ */ $(wa, [["render", Ra], ["__scopeId", "data-v-d37ef215"]]), Ha = {
|
|
5784
5874
|
name: "GalleryLogic",
|
|
5785
5875
|
i18nOptions: {
|
|
5786
5876
|
namespaces: "GalleryLogic",
|
|
@@ -5838,7 +5928,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
|
|
|
5838
5928
|
},
|
|
5839
5929
|
filterLanguage: {
|
|
5840
5930
|
type: String,
|
|
5841
|
-
default: () => ["cling", "fortnoxSe"].includes(
|
|
5931
|
+
default: () => ["cling", "fortnoxSe"].includes(Q.brand) ? "sv" : "en"
|
|
5842
5932
|
},
|
|
5843
5933
|
showTemplateAuthor: {
|
|
5844
5934
|
type: Boolean,
|
|
@@ -5880,7 +5970,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
|
|
|
5880
5970
|
};
|
|
5881
5971
|
},
|
|
5882
5972
|
computed: {
|
|
5883
|
-
...
|
|
5973
|
+
...H({
|
|
5884
5974
|
stripeProducts: "stripe/products"
|
|
5885
5975
|
}),
|
|
5886
5976
|
galleryItems() {
|
|
@@ -5922,12 +6012,12 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
|
|
|
5922
6012
|
);
|
|
5923
6013
|
this.selectGalleryItem(r);
|
|
5924
6014
|
} catch (r) {
|
|
5925
|
-
|
|
6015
|
+
re(r);
|
|
5926
6016
|
}
|
|
5927
6017
|
},
|
|
5928
6018
|
methods: {
|
|
5929
|
-
...
|
|
5930
|
-
loadPrices:
|
|
6019
|
+
...K({
|
|
6020
|
+
loadPrices: M.LOAD_PRICES
|
|
5931
6021
|
}),
|
|
5932
6022
|
async loadTemplateGallery() {
|
|
5933
6023
|
this.isLoading = !0;
|
|
@@ -5940,7 +6030,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
|
|
|
5940
6030
|
const t = await this.fetchGallery(e);
|
|
5941
6031
|
this.templateGalleryItems = (t || []).map((n) => {
|
|
5942
6032
|
if (this.canPurchase && n.isPurchasable) {
|
|
5943
|
-
const s =
|
|
6033
|
+
const s = Je(n, {
|
|
5944
6034
|
availableProducts: this.stripeProducts
|
|
5945
6035
|
});
|
|
5946
6036
|
s && (n.product = s);
|
|
@@ -5951,7 +6041,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
|
|
|
5951
6041
|
[]
|
|
5952
6042
|
);
|
|
5953
6043
|
} catch (t) {
|
|
5954
|
-
|
|
6044
|
+
re(t);
|
|
5955
6045
|
} finally {
|
|
5956
6046
|
this.isLoading = !1;
|
|
5957
6047
|
}
|
|
@@ -5964,7 +6054,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
|
|
|
5964
6054
|
isVisibleApp: !0,
|
|
5965
6055
|
includePurchaseInfo: !0
|
|
5966
6056
|
}, n = await this.fetchGallery(t), s = (o = n == null ? void 0 : n[0]) == null ? void 0 : o.templateId;
|
|
5967
|
-
return s ? (St(s), new
|
|
6057
|
+
return s ? (St(s), new It(s)) : null;
|
|
5968
6058
|
},
|
|
5969
6059
|
onUseTemplate(e) {
|
|
5970
6060
|
if (!e) throw new Error("Could not find template");
|
|
@@ -5986,7 +6076,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
|
|
|
5986
6076
|
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
5987
6077
|
};
|
|
5988
6078
|
this.$modal.show(
|
|
5989
|
-
|
|
6079
|
+
Oa,
|
|
5990
6080
|
{
|
|
5991
6081
|
template: e,
|
|
5992
6082
|
fetchGallery: this.fetchGallery,
|
|
@@ -5999,7 +6089,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
|
|
|
5999
6089
|
// Only show author if enabled)
|
|
6000
6090
|
author: {
|
|
6001
6091
|
name: this.$t("_common:brand.name"),
|
|
6002
|
-
avatar: n[
|
|
6092
|
+
avatar: n[Q.brand],
|
|
6003
6093
|
templatesCount: this.templateGalleryItems.length
|
|
6004
6094
|
}
|
|
6005
6095
|
} : {}
|
|
@@ -6031,8 +6121,8 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
|
|
|
6031
6121
|
}
|
|
6032
6122
|
}
|
|
6033
6123
|
};
|
|
6034
|
-
function
|
|
6035
|
-
return
|
|
6124
|
+
function Ua(e, t, n, s, i, o) {
|
|
6125
|
+
return P(e.$slots, "default", {
|
|
6036
6126
|
galleryItems: o.galleryItems,
|
|
6037
6127
|
categories: o.categories,
|
|
6038
6128
|
activeCategory: i.activeCategory,
|
|
@@ -6040,7 +6130,7 @@ function Hl(e, t, n, s, i, o) {
|
|
|
6040
6130
|
selectGalleryItem: o.selectGalleryItem
|
|
6041
6131
|
});
|
|
6042
6132
|
}
|
|
6043
|
-
const
|
|
6133
|
+
const qa = /* @__PURE__ */ $(Ha, [["render", Ua]]), Ga = {
|
|
6044
6134
|
i18nOptions: {
|
|
6045
6135
|
namespaces: "TemplateSelector",
|
|
6046
6136
|
messages: {
|
|
@@ -6084,15 +6174,16 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
|
|
|
6084
6174
|
},
|
|
6085
6175
|
name: "TemplateSelector",
|
|
6086
6176
|
components: {
|
|
6087
|
-
HorizontalScroll:
|
|
6088
|
-
DocumentIcon:
|
|
6089
|
-
DocumentRecent:
|
|
6090
|
-
GalleryLogic:
|
|
6091
|
-
IsPremiumPreStep:
|
|
6092
|
-
CDropdown:
|
|
6093
|
-
CDropdownItem:
|
|
6094
|
-
|
|
6095
|
-
|
|
6177
|
+
HorizontalScroll: Ca,
|
|
6178
|
+
DocumentIcon: ma,
|
|
6179
|
+
DocumentRecent: oa,
|
|
6180
|
+
GalleryLogic: qa,
|
|
6181
|
+
IsPremiumPreStep: ee,
|
|
6182
|
+
CDropdown: de,
|
|
6183
|
+
CDropdownItem: G,
|
|
6184
|
+
TemplateActionsDropdown: Ks
|
|
6185
|
+
},
|
|
6186
|
+
mixins: [Y],
|
|
6096
6187
|
props: {
|
|
6097
6188
|
// Used for creating documents form project/client views
|
|
6098
6189
|
projectId: {
|
|
@@ -6147,7 +6238,7 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
|
|
|
6147
6238
|
};
|
|
6148
6239
|
},
|
|
6149
6240
|
computed: {
|
|
6150
|
-
...
|
|
6241
|
+
...H({
|
|
6151
6242
|
canFeature: "application/feature",
|
|
6152
6243
|
templateById: "templates/byId",
|
|
6153
6244
|
isFetchingTemplates: "templates/isFetching",
|
|
@@ -6193,11 +6284,11 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
|
|
|
6193
6284
|
this.loadTemplates();
|
|
6194
6285
|
},
|
|
6195
6286
|
methods: {
|
|
6196
|
-
...
|
|
6197
|
-
loadTemplatesAction:
|
|
6198
|
-
loadTemplate:
|
|
6199
|
-
createTemplate:
|
|
6200
|
-
removeTemplate:
|
|
6287
|
+
...K({
|
|
6288
|
+
loadTemplatesAction: M.LOAD_TEMPLATES,
|
|
6289
|
+
loadTemplate: M.LOAD_TEMPLATE,
|
|
6290
|
+
createTemplate: M.DO_CREATE_TEMPLATE,
|
|
6291
|
+
removeTemplate: M.REMOVE_TEMPLATE
|
|
6201
6292
|
}),
|
|
6202
6293
|
loadTemplates() {
|
|
6203
6294
|
const e = {};
|
|
@@ -6214,7 +6305,7 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
|
|
|
6214
6305
|
},
|
|
6215
6306
|
async saveTemplate(e) {
|
|
6216
6307
|
try {
|
|
6217
|
-
const { data: t } = e, n =
|
|
6308
|
+
const { data: t } = e, n = $t(t, [
|
|
6218
6309
|
"_id",
|
|
6219
6310
|
"id",
|
|
6220
6311
|
"companyId",
|
|
@@ -6222,13 +6313,13 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
|
|
|
6222
6313
|
]);
|
|
6223
6314
|
return await this.createTemplate({ body: n }), !0;
|
|
6224
6315
|
} catch (t) {
|
|
6225
|
-
|
|
6316
|
+
re(t);
|
|
6226
6317
|
}
|
|
6227
6318
|
return !1;
|
|
6228
6319
|
},
|
|
6229
6320
|
async openTemplateFormModal({ document: e = null, template: t = null }) {
|
|
6230
6321
|
this.$modal.show(
|
|
6231
|
-
|
|
6322
|
+
Ye,
|
|
6232
6323
|
{
|
|
6233
6324
|
document: e,
|
|
6234
6325
|
template: t,
|
|
@@ -6251,142 +6342,85 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
|
|
|
6251
6342
|
},
|
|
6252
6343
|
canUseTemplate(e) {
|
|
6253
6344
|
return e.doConsumeDocumentQuota ? this.canFeature("useDocTemplate") : !0;
|
|
6254
|
-
},
|
|
6255
|
-
async copyToClipboard(e) {
|
|
6256
|
-
const t = `${j.baseUrl}/template/${e}`;
|
|
6257
|
-
await Ue(t) && be("info", this.$t("copyMessage"));
|
|
6258
6345
|
}
|
|
6259
6346
|
}
|
|
6260
|
-
},
|
|
6347
|
+
}, Na = { class: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, Wa = { style: { width: "100%", "padding-bottom": "5em" } }, ja = { class: "section-title" }, Za = { class: "section-subtitle" }, Ka = {
|
|
6261
6348
|
key: 0,
|
|
6262
6349
|
class: "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"
|
|
6263
|
-
},
|
|
6350
|
+
}, Qa = {
|
|
6264
6351
|
key: 1,
|
|
6265
6352
|
class: "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"
|
|
6266
|
-
},
|
|
6353
|
+
}, Ya = { style: { width: "100%", "padding-bottom": "5em" } }, Ja = { class: "section-title w-full" }, Xa = { class: "flex items-center justify-between" }, el = ["innerHTML"], tl = {
|
|
6267
6354
|
key: 0,
|
|
6268
6355
|
class: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg"
|
|
6269
|
-
},
|
|
6356
|
+
}, nl = ["textContent"], il = {
|
|
6270
6357
|
class: "section-title",
|
|
6271
6358
|
style: { flex: "1 1 auto", "padding-bottom": "0.5em" }
|
|
6272
|
-
},
|
|
6273
|
-
function
|
|
6274
|
-
const r = m("CIcon"), g = m("CButton"), h = m("
|
|
6275
|
-
return
|
|
6276
|
-
|
|
6359
|
+
}, ol = { class: "section-subtitle" };
|
|
6360
|
+
function sl(e, t, n, s, i, o) {
|
|
6361
|
+
const r = m("CIcon"), g = m("CButton"), h = m("TemplateActionsDropdown"), b = m("DocumentIcon"), k = m("IsPremiumPreStep"), w = m("CDropdownItem"), T = m("CDropdown"), D = m("HorizontalScroll"), y = m("GalleryLogic"), f = m("DocumentRecent"), x = se("tooltip");
|
|
6362
|
+
return l(), p("div", Na, [
|
|
6363
|
+
a("div", {
|
|
6277
6364
|
class: L([{ small: e.mq === "sm" }, "font-inter form-start main mx-auto max-w-5xl"])
|
|
6278
6365
|
}, [
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6366
|
+
P(e.$slots, "header", {}, void 0, !0),
|
|
6367
|
+
a("div", Wa, [
|
|
6368
|
+
a("div", ja, [
|
|
6369
|
+
a("div", null, d(e.$t("myTemplates")), 1),
|
|
6370
|
+
a("div", Za, d(e.$t("myTemplatesSubTitle")), 1)
|
|
6284
6371
|
]),
|
|
6285
6372
|
c(k, { feature: "useDocTemplate" }, {
|
|
6286
|
-
default: u(({ onClick:
|
|
6287
|
-
(
|
|
6373
|
+
default: u(({ onClick: I }) => [
|
|
6374
|
+
(l(), C(j(i.isExpanded ? "div" : "HorizontalScroll"), {
|
|
6288
6375
|
class: L([{ "is-expanded": i.isExpanded }, "template-list"]),
|
|
6289
|
-
onExpand: t[
|
|
6376
|
+
onExpand: t[1] || (t[1] = (F) => i.isExpanded = !0)
|
|
6290
6377
|
}, {
|
|
6291
6378
|
default: u(() => [
|
|
6292
|
-
(
|
|
6293
|
-
key:
|
|
6294
|
-
"is-add":
|
|
6295
|
-
"is-placeholder":
|
|
6296
|
-
media:
|
|
6297
|
-
thumbnail:
|
|
6298
|
-
name:
|
|
6379
|
+
(l(!0), p(S, null, A(o.myTemplates, (F) => (l(), C(b, {
|
|
6380
|
+
key: F.id,
|
|
6381
|
+
"is-add": F.id === "empty",
|
|
6382
|
+
"is-placeholder": F.placeholder,
|
|
6383
|
+
media: F.defaultMedia || o.fallbackMedia,
|
|
6384
|
+
thumbnail: F.thumbnailUrl,
|
|
6385
|
+
name: F.name,
|
|
6299
6386
|
class: "template-item",
|
|
6300
|
-
onTriggerOpenTemplate: (
|
|
6387
|
+
onTriggerOpenTemplate: (E) => F.placeholder ? null : o.canUseTemplate(F) ? o.select({ templateId: F.id }) : I()
|
|
6301
6388
|
}, {
|
|
6302
6389
|
badge: u(() => [
|
|
6303
|
-
o.canUseTemplate(
|
|
6390
|
+
o.canUseTemplate(F) ? !F.doConsumeDocumentQuota && !F.placeholder ? (l(), p("div", Qa, d(e.$t("_common:free")), 1)) : v("", !0) : (l(), p("div", Ka, [
|
|
6304
6391
|
c(r, {
|
|
6305
6392
|
type: "lock",
|
|
6306
6393
|
size: "12",
|
|
6307
6394
|
"stroke-width": "2.5"
|
|
6308
6395
|
}),
|
|
6309
|
-
t[
|
|
6396
|
+
t[3] || (t[3] = a("div", { class: "text-[11px] font-semibold" }, "Pro", -1))
|
|
6310
6397
|
]))
|
|
6311
6398
|
]),
|
|
6312
6399
|
default: u(() => [
|
|
6313
|
-
|
|
6400
|
+
F.onModify === "create" && !F.doConsumeDocumentQuota ? N((l(), C(g, {
|
|
6314
6401
|
key: 0,
|
|
6315
6402
|
icon: "info",
|
|
6316
6403
|
type: "none",
|
|
6317
6404
|
pattern: "tertiary",
|
|
6318
6405
|
size: "small",
|
|
6319
6406
|
style: { top: "-8px", right: "-4px" },
|
|
6320
|
-
onClick: t[0] || (t[0] =
|
|
6407
|
+
onClick: t[0] || (t[0] = Z(() => {
|
|
6321
6408
|
}, ["stop"]))
|
|
6322
6409
|
}, null, 512)), [
|
|
6323
|
-
[
|
|
6410
|
+
[x, {
|
|
6324
6411
|
content: e.$t("icon.freeTooltip"),
|
|
6325
6412
|
placement: "bottom"
|
|
6326
6413
|
}]
|
|
6327
|
-
]) : (
|
|
6414
|
+
]) : N((l(), C(h, {
|
|
6328
6415
|
key: 1,
|
|
6329
6416
|
"append-to-body": "",
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
type: "none",
|
|
6338
|
-
pattern: "tertiary",
|
|
6339
|
-
size: "small"
|
|
6340
|
-
}, null, 512), [
|
|
6341
|
-
[f, e.$t("icon.tooltip")]
|
|
6342
|
-
])
|
|
6343
|
-
]),
|
|
6344
|
-
default: u(() => [
|
|
6345
|
-
n.onEditTemplate ? (a(), C(h, {
|
|
6346
|
-
key: 0,
|
|
6347
|
-
"icon-left": "template-color",
|
|
6348
|
-
onClick: (A) => n.onEditTemplate(_.id)
|
|
6349
|
-
}, {
|
|
6350
|
-
default: u(() => [
|
|
6351
|
-
T(d(e.$t("_common:edit", { thing: e.$t("_common:template") })), 1)
|
|
6352
|
-
]),
|
|
6353
|
-
_: 2
|
|
6354
|
-
}, 1032, ["onClick"])) : v("", !0),
|
|
6355
|
-
c(h, {
|
|
6356
|
-
"icon-props": { size: 16 },
|
|
6357
|
-
"icon-left": "edit",
|
|
6358
|
-
onClick: (A) => o.openTemplateFormModal({ template: _ })
|
|
6359
|
-
}, {
|
|
6360
|
-
default: u(() => [
|
|
6361
|
-
T(d(e.$t("_common:change", { thing: e.$t("_common:name") })), 1)
|
|
6362
|
-
]),
|
|
6363
|
-
_: 2
|
|
6364
|
-
}, 1032, ["onClick"]),
|
|
6365
|
-
c(h, { separator: "" }),
|
|
6366
|
-
c(h, {
|
|
6367
|
-
"icon-props": { size: 16 },
|
|
6368
|
-
"icon-left": "link",
|
|
6369
|
-
onClick: (A) => o.copyToClipboard(_.id)
|
|
6370
|
-
}, {
|
|
6371
|
-
default: u(() => [
|
|
6372
|
-
T(d(e.$t("_common:share", { thing: e.$t("_common:link") })), 1)
|
|
6373
|
-
]),
|
|
6374
|
-
_: 2
|
|
6375
|
-
}, 1032, ["onClick"]),
|
|
6376
|
-
c(h, { separator: "" }),
|
|
6377
|
-
c(h, {
|
|
6378
|
-
"icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" },
|
|
6379
|
-
"icon-left": "trash",
|
|
6380
|
-
onClick: (A) => e.removeTemplate({ template: _ })
|
|
6381
|
-
}, {
|
|
6382
|
-
default: u(() => [
|
|
6383
|
-
T(d(e.$t("_common:remove")), 1)
|
|
6384
|
-
]),
|
|
6385
|
-
_: 2
|
|
6386
|
-
}, 1032, ["onClick"])
|
|
6387
|
-
]),
|
|
6388
|
-
_: 2
|
|
6389
|
-
}, 1024))
|
|
6417
|
+
template: F,
|
|
6418
|
+
onEdit: n.onEditTemplate,
|
|
6419
|
+
onRename: o.openTemplateFormModal,
|
|
6420
|
+
onRemove: e.removeTemplate
|
|
6421
|
+
}, null, 8, ["template", "onEdit", "onRename", "onRemove"])), [
|
|
6422
|
+
[x, e.$t("icon.tooltip")]
|
|
6423
|
+
])
|
|
6390
6424
|
]),
|
|
6391
6425
|
_: 2
|
|
6392
6426
|
}, 1032, ["is-add", "is-placeholder", "media", "thumbnail", "name", "onTriggerOpenTemplate"]))), 128))
|
|
@@ -6397,7 +6431,7 @@ function oa(e, t, n, s, i, o) {
|
|
|
6397
6431
|
_: 1
|
|
6398
6432
|
})
|
|
6399
6433
|
]),
|
|
6400
|
-
n.showGallery ? (
|
|
6434
|
+
n.showGallery ? (l(), C(y, {
|
|
6401
6435
|
key: 0,
|
|
6402
6436
|
"fetch-gallery": o.fetchGallery,
|
|
6403
6437
|
"use-template": o.select,
|
|
@@ -6406,19 +6440,19 @@ function oa(e, t, n, s, i, o) {
|
|
|
6406
6440
|
"gallery-category": n.galleryCategory
|
|
6407
6441
|
}, {
|
|
6408
6442
|
default: u(({
|
|
6409
|
-
galleryItems:
|
|
6410
|
-
categories:
|
|
6411
|
-
activeCategory:
|
|
6412
|
-
selectCategory:
|
|
6413
|
-
selectGalleryItem:
|
|
6443
|
+
galleryItems: I,
|
|
6444
|
+
categories: F,
|
|
6445
|
+
activeCategory: E,
|
|
6446
|
+
selectCategory: ne,
|
|
6447
|
+
selectGalleryItem: V
|
|
6414
6448
|
}) => [
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
c(
|
|
6449
|
+
a("div", Ya, [
|
|
6450
|
+
a("div", Ja, [
|
|
6451
|
+
a("div", Xa, [
|
|
6452
|
+
a("div", null, d(e.$t("gallery")), 1),
|
|
6453
|
+
c(T, {
|
|
6420
6454
|
style: { "margin-left": "calc(0.5 * var(--rem))" },
|
|
6421
|
-
onClick: t[
|
|
6455
|
+
onClick: t[2] || (t[2] = Z(() => {
|
|
6422
6456
|
}, ["stop"]))
|
|
6423
6457
|
}, {
|
|
6424
6458
|
trigger: u(() => [
|
|
@@ -6429,19 +6463,19 @@ function oa(e, t, n, s, i, o) {
|
|
|
6429
6463
|
"icon-right": "chevron-down"
|
|
6430
6464
|
}, {
|
|
6431
6465
|
default: u(() => [
|
|
6432
|
-
|
|
6466
|
+
_(d(E ? E.label : ""), 1)
|
|
6433
6467
|
]),
|
|
6434
6468
|
_: 2
|
|
6435
6469
|
}, 1024)
|
|
6436
6470
|
]),
|
|
6437
6471
|
default: u(() => [
|
|
6438
|
-
(
|
|
6439
|
-
key:
|
|
6440
|
-
"icon-right":
|
|
6441
|
-
onClick: (
|
|
6472
|
+
(l(!0), p(S, null, A(F, (z) => (l(), C(w, {
|
|
6473
|
+
key: z.key,
|
|
6474
|
+
"icon-right": E && E.key === z.key ? "check" : "",
|
|
6475
|
+
onClick: (O) => ne(z)
|
|
6442
6476
|
}, {
|
|
6443
6477
|
default: u(() => [
|
|
6444
|
-
|
|
6478
|
+
_(d(z.label), 1)
|
|
6445
6479
|
]),
|
|
6446
6480
|
_: 2
|
|
6447
6481
|
}, 1032, ["icon-right", "onClick"]))), 128))
|
|
@@ -6449,32 +6483,32 @@ function oa(e, t, n, s, i, o) {
|
|
|
6449
6483
|
_: 2
|
|
6450
6484
|
}, 1024)
|
|
6451
6485
|
]),
|
|
6452
|
-
|
|
6486
|
+
a("div", {
|
|
6453
6487
|
class: "section-subtitle",
|
|
6454
6488
|
innerHTML: e.$t("gallerySubTitle")
|
|
6455
|
-
}, null, 8,
|
|
6489
|
+
}, null, 8, el)
|
|
6456
6490
|
]),
|
|
6457
|
-
c(
|
|
6491
|
+
c(D, { class: "template-list" }, {
|
|
6458
6492
|
default: u(() => [
|
|
6459
|
-
(
|
|
6460
|
-
key:
|
|
6461
|
-
"is-placeholder":
|
|
6462
|
-
media: { type: "image", resourceUrl:
|
|
6463
|
-
name:
|
|
6493
|
+
(l(!0), p(S, null, A(I, (z) => (l(), C(b, {
|
|
6494
|
+
key: z.id,
|
|
6495
|
+
"is-placeholder": z.placeholder,
|
|
6496
|
+
media: { type: "image", resourceUrl: z.backgroundUrl },
|
|
6497
|
+
name: z.name,
|
|
6464
6498
|
class: "template-item",
|
|
6465
|
-
onTriggerOpenTemplate: (
|
|
6499
|
+
onTriggerOpenTemplate: (O) => z.placeholder ? null : V(z)
|
|
6466
6500
|
}, {
|
|
6467
6501
|
badge: u(() => [
|
|
6468
|
-
|
|
6469
|
-
|
|
6502
|
+
z.product ? (l(), p("div", tl, [
|
|
6503
|
+
z.product.isPurchased ? (l(), C(r, {
|
|
6470
6504
|
key: 0,
|
|
6471
6505
|
type: "check",
|
|
6472
6506
|
size: "14",
|
|
6473
6507
|
"stroke-width": "3"
|
|
6474
|
-
})) : (
|
|
6508
|
+
})) : (l(), p("div", {
|
|
6475
6509
|
key: 1,
|
|
6476
|
-
textContent: d(
|
|
6477
|
-
}, null, 8,
|
|
6510
|
+
textContent: d(z.product.price)
|
|
6511
|
+
}, null, 8, nl))
|
|
6478
6512
|
])) : v("", !0)
|
|
6479
6513
|
]),
|
|
6480
6514
|
_: 2
|
|
@@ -6486,15 +6520,15 @@ function oa(e, t, n, s, i, o) {
|
|
|
6486
6520
|
]),
|
|
6487
6521
|
_: 1
|
|
6488
6522
|
}, 8, ["fetch-gallery", "use-template", "show-template-author", "modal-props", "gallery-category"])) : v("", !0),
|
|
6489
|
-
c(
|
|
6523
|
+
c(f, {
|
|
6490
6524
|
style: { width: "100%", "padding-bottom": "5em" },
|
|
6491
6525
|
onUseDocTemplate: o.select,
|
|
6492
6526
|
onSaveTemplate: o.openTemplateFormModal
|
|
6493
6527
|
}, {
|
|
6494
6528
|
default: u(() => [
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6529
|
+
a("div", il, [
|
|
6530
|
+
a("div", null, d(e.$t("recent")), 1),
|
|
6531
|
+
a("div", ol, d(e.$t("recentSubTitle")), 1)
|
|
6498
6532
|
])
|
|
6499
6533
|
]),
|
|
6500
6534
|
_: 1
|
|
@@ -6502,44 +6536,44 @@ function oa(e, t, n, s, i, o) {
|
|
|
6502
6536
|
], 2)
|
|
6503
6537
|
]);
|
|
6504
6538
|
}
|
|
6505
|
-
const
|
|
6506
|
-
var
|
|
6507
|
-
function
|
|
6508
|
-
if (
|
|
6509
|
-
|
|
6539
|
+
const al = /* @__PURE__ */ $(Ga, [["render", sl], ["__scopeId", "data-v-825ca28b"]]);
|
|
6540
|
+
var he, Be;
|
|
6541
|
+
function ll() {
|
|
6542
|
+
if (Be) return he;
|
|
6543
|
+
Be = 1;
|
|
6510
6544
|
var e = Lt(), t = Vt(), n = Bt();
|
|
6511
6545
|
function s(i, o, r) {
|
|
6512
6546
|
for (var g = -1, h = o.length, b = {}; ++g < h; ) {
|
|
6513
|
-
var
|
|
6514
|
-
r(
|
|
6547
|
+
var k = o[g], w = e(i, k);
|
|
6548
|
+
r(w, k) && t(b, n(k, i), w);
|
|
6515
6549
|
}
|
|
6516
6550
|
return b;
|
|
6517
6551
|
}
|
|
6518
|
-
return
|
|
6552
|
+
return he = s, he;
|
|
6519
6553
|
}
|
|
6520
|
-
var
|
|
6521
|
-
function
|
|
6522
|
-
if (
|
|
6523
|
-
|
|
6524
|
-
var e =
|
|
6554
|
+
var fe, Me;
|
|
6555
|
+
function rl() {
|
|
6556
|
+
if (Me) return fe;
|
|
6557
|
+
Me = 1;
|
|
6558
|
+
var e = ll(), t = Mt();
|
|
6525
6559
|
function n(s, i) {
|
|
6526
6560
|
return e(s, i, function(o, r) {
|
|
6527
6561
|
return t(s, r);
|
|
6528
6562
|
});
|
|
6529
6563
|
}
|
|
6530
|
-
return
|
|
6564
|
+
return fe = n, fe;
|
|
6531
6565
|
}
|
|
6532
|
-
var
|
|
6533
|
-
function
|
|
6534
|
-
if (
|
|
6535
|
-
|
|
6536
|
-
var e =
|
|
6566
|
+
var ge, Pe;
|
|
6567
|
+
function dl() {
|
|
6568
|
+
if (Pe) return ge;
|
|
6569
|
+
Pe = 1;
|
|
6570
|
+
var e = rl(), t = Yt(), n = t(function(s, i) {
|
|
6537
6571
|
return s == null ? {} : e(s, i);
|
|
6538
6572
|
});
|
|
6539
|
-
return
|
|
6573
|
+
return ge = n, ge;
|
|
6540
6574
|
}
|
|
6541
|
-
var
|
|
6542
|
-
const
|
|
6575
|
+
var cl = dl();
|
|
6576
|
+
const ul = /* @__PURE__ */ He(cl), ml = {
|
|
6543
6577
|
name: "DocForm",
|
|
6544
6578
|
i18nOptions: {
|
|
6545
6579
|
namespaces: "widgetDocForm",
|
|
@@ -6553,7 +6587,7 @@ const ca = /* @__PURE__ */ Oe(da), ua = {
|
|
|
6553
6587
|
}
|
|
6554
6588
|
},
|
|
6555
6589
|
components: {
|
|
6556
|
-
TemplateSelector:
|
|
6590
|
+
TemplateSelector: al,
|
|
6557
6591
|
DocumentForm: Zs,
|
|
6558
6592
|
PostSend: un
|
|
6559
6593
|
},
|
|
@@ -6622,7 +6656,7 @@ const ca = /* @__PURE__ */ Oe(da), ua = {
|
|
|
6622
6656
|
};
|
|
6623
6657
|
},
|
|
6624
6658
|
computed: {
|
|
6625
|
-
...
|
|
6659
|
+
...H({
|
|
6626
6660
|
company: "application/company",
|
|
6627
6661
|
feature: "application/feature",
|
|
6628
6662
|
can: "application/can",
|
|
@@ -6655,17 +6689,17 @@ const ca = /* @__PURE__ */ Oe(da), ua = {
|
|
|
6655
6689
|
(!this.rawDoc || (e = this.rawDoc) != null && e.__isNew) && (this.view = "templateSelect");
|
|
6656
6690
|
},
|
|
6657
6691
|
methods: {
|
|
6658
|
-
...
|
|
6659
|
-
removeFormKeyValue:
|
|
6660
|
-
loadDocumentForm:
|
|
6661
|
-
duplicateDocumentForm:
|
|
6662
|
-
saveDocument:
|
|
6663
|
-
loadCompanyUser:
|
|
6664
|
-
saveTemplate:
|
|
6692
|
+
...K({
|
|
6693
|
+
removeFormKeyValue: M.REMOVE_FORM_KEY_VALUE,
|
|
6694
|
+
loadDocumentForm: M.LOAD_DOCUMENT2_FORM,
|
|
6695
|
+
duplicateDocumentForm: M.LOAD_DUPLICATE_DOCUMENT2_FORM,
|
|
6696
|
+
saveDocument: M.SAVE_DYNDOC_FORM,
|
|
6697
|
+
loadCompanyUser: M.LOAD_COMPANY_USER,
|
|
6698
|
+
saveTemplate: M.SAVE_TEMPLATE_FORM
|
|
6665
6699
|
}),
|
|
6666
6700
|
async initDoc() {
|
|
6667
6701
|
if (!this.rawDoc) throw new Error("Missing initiated form document");
|
|
6668
|
-
this.document = new
|
|
6702
|
+
this.document = new qe({
|
|
6669
6703
|
data: this.rawDoc,
|
|
6670
6704
|
can: this.can,
|
|
6671
6705
|
getters: this.$store.getters,
|
|
@@ -6674,7 +6708,7 @@ const ca = /* @__PURE__ */ Oe(da), ua = {
|
|
|
6674
6708
|
},
|
|
6675
6709
|
async onTemplateSelect({ templateId: e, documentId: t, formData: n }) {
|
|
6676
6710
|
var i;
|
|
6677
|
-
const s =
|
|
6711
|
+
const s = ul({ ...this.rawDoc }, [
|
|
6678
6712
|
"__tempId",
|
|
6679
6713
|
"externalReferences",
|
|
6680
6714
|
"subscriberCompanyUserIds",
|
|
@@ -6719,27 +6753,27 @@ const ca = /* @__PURE__ */ Oe(da), ua = {
|
|
|
6719
6753
|
this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
|
|
6720
6754
|
},
|
|
6721
6755
|
isManualDelivery(e) {
|
|
6722
|
-
const t =
|
|
6756
|
+
const t = ye(e);
|
|
6723
6757
|
return !t.sms && !t.email;
|
|
6724
6758
|
}
|
|
6725
6759
|
}
|
|
6726
|
-
},
|
|
6760
|
+
}, pl = { class: "flex h-full w-full flex-col" }, hl = {
|
|
6727
6761
|
key: 0,
|
|
6728
6762
|
class: "flex h-full w-full flex-col"
|
|
6729
|
-
},
|
|
6730
|
-
function
|
|
6763
|
+
}, fl = { class: "relative flex h-16 items-center justify-center border-b border-gray-200" };
|
|
6764
|
+
function gl(e, t, n, s, i, o) {
|
|
6731
6765
|
const r = m("CButton"), g = m("TemplateSelector"), h = m("DocumentForm"), b = m("PostSend");
|
|
6732
|
-
return
|
|
6733
|
-
i.view === "templateSelect" ? (
|
|
6734
|
-
|
|
6735
|
-
n.closeFunc ? (
|
|
6766
|
+
return l(), p("div", pl, [
|
|
6767
|
+
i.view === "templateSelect" ? (l(), p("div", hl, [
|
|
6768
|
+
a("div", fl, [
|
|
6769
|
+
n.closeFunc ? (l(), C(r, {
|
|
6736
6770
|
key: 0,
|
|
6737
6771
|
icon: "x",
|
|
6738
6772
|
circle: "",
|
|
6739
6773
|
class: "absolute left-4 top-1/2 -translate-y-1/2",
|
|
6740
6774
|
onClick: n.closeFunc
|
|
6741
6775
|
}, null, 8, ["onClick"])) : v("", !0),
|
|
6742
|
-
|
|
6776
|
+
a("div", null, d(e.$t("selectNavTitle")), 1)
|
|
6743
6777
|
]),
|
|
6744
6778
|
c(g, {
|
|
6745
6779
|
"on-use-template": o.onTemplateSelect,
|
|
@@ -6751,7 +6785,7 @@ function fa(e, t, n, s, i, o) {
|
|
|
6751
6785
|
"include-partner-templates": "",
|
|
6752
6786
|
class: "body-scroll min-h-0"
|
|
6753
6787
|
}, null, 8, ["on-use-template", "show-gallery", "gallery-category", "on-save-template", "show-keep-clients-option"])
|
|
6754
|
-
])) : i.view === "editor" ? (
|
|
6788
|
+
])) : i.view === "editor" ? (l(), C(h, {
|
|
6755
6789
|
key: 1,
|
|
6756
6790
|
document: i.document,
|
|
6757
6791
|
"set-doc-value": o.setDocValue,
|
|
@@ -6767,7 +6801,7 @@ function fa(e, t, n, s, i, o) {
|
|
|
6767
6801
|
"show-keep-clients-option": n.showKeepClientsOption
|
|
6768
6802
|
}, {
|
|
6769
6803
|
"nav-right-action": u(() => [
|
|
6770
|
-
n.isEditingTemplate ? (
|
|
6804
|
+
n.isEditingTemplate ? (l(), C(r, {
|
|
6771
6805
|
key: 0,
|
|
6772
6806
|
loading: i.isSavingTemplate,
|
|
6773
6807
|
disabled: !o.canDoActions,
|
|
@@ -6779,13 +6813,13 @@ function fa(e, t, n, s, i, o) {
|
|
|
6779
6813
|
onClick: o.onSaveTemplateClick
|
|
6780
6814
|
}, {
|
|
6781
6815
|
default: u(() => [
|
|
6782
|
-
|
|
6816
|
+
_(d(e.$t("_common:save", { thing: e.$t("_common:template") })), 1)
|
|
6783
6817
|
]),
|
|
6784
6818
|
_: 1
|
|
6785
6819
|
}, 8, ["loading", "disabled", "onClick"])) : v("", !0)
|
|
6786
6820
|
]),
|
|
6787
6821
|
_: 1
|
|
6788
|
-
}, 8, ["document", "set-doc-value", "set-form-value", "remove-doc-value", "remove-doc-key-value", "on-save-template", "on-save-document", "is-loading", "close", "go-back", "show-keep-clients-option"])) : i.view === "postSend" ? (
|
|
6822
|
+
}, 8, ["document", "set-doc-value", "set-form-value", "remove-doc-value", "remove-doc-key-value", "on-save-template", "on-save-document", "is-loading", "close", "go-back", "show-keep-clients-option"])) : i.view === "postSend" ? (l(), C(b, {
|
|
6789
6823
|
key: 2,
|
|
6790
6824
|
document: i.document,
|
|
6791
6825
|
"on-send-func": n.closeFunc,
|
|
@@ -6793,7 +6827,7 @@ function fa(e, t, n, s, i, o) {
|
|
|
6793
6827
|
}, null, 8, ["document", "on-send-func", "on-close-func"])) : v("", !0)
|
|
6794
6828
|
]);
|
|
6795
6829
|
}
|
|
6796
|
-
const
|
|
6830
|
+
const Ul = /* @__PURE__ */ $(ml, [["render", gl], ["__scopeId", "data-v-4c6b6a6b"]]);
|
|
6797
6831
|
export {
|
|
6798
|
-
|
|
6832
|
+
Ul as default
|
|
6799
6833
|
};
|