@cling-se/widget 0.19.7 → 0.19.9
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 +18 -0
- package/dist/{AddClientCallout-BdGevuQo.js → AddClientCallout-C400wpa7.js} +19 -19
- package/dist/{AnswerModal-DfjF-RVP.js → AnswerModal-C_vekdpA.js} +80 -80
- package/dist/{AttachmentItem-BEd3qVAo.js → AttachmentItem-CYeH1VVw.js} +14 -14
- package/dist/{BaseUpload-Zm4EX8ir.js → BaseUpload-DGLogqK4.js} +256 -256
- package/dist/{BlockMedia-ZHaA4OMV.js → BlockMedia-Hbm0GWNw.js} +33 -32
- package/dist/{CCallout-BlglVZrm.js → CCallout-BPCwr3uM.js} +15 -15
- package/dist/{CCurrencyDropdown-BzvKsm1N.js → CCurrencyDropdown-CZXWH0mA.js} +13 -13
- package/dist/{CDropdownItem-B5rgSee7.js → CDropdownItem-B9dja0RC.js} +11 -11
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js → CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.js} +17 -17
- package/dist/{CPhoneFormat-DaDNMlmK.js → CPhoneFormat-C1cjsMVZ.js} +1 -1
- package/dist/{CPhoneInput-BUogm59J.js → CPhoneInput-DwcIFaqz.js} +23 -23
- package/dist/{CPriceInput-Cd5OHMJS.js → CPriceInput-C_PfAhRb.js} +12 -12
- package/dist/{CSelect-CmoAbVkP.js → CSelect-D4A_clvT.js} +15 -15
- package/dist/{CSkeleton-BF6EYj8H.js → CSkeleton-h81Vudx0.js} +16 -16
- package/dist/{ClientAutocomplete-CHfp4YiV.js → ClientAutocomplete-B_R7zgvM.js} +24 -24
- package/dist/{ClientModal-Com23Qgc.js → ClientModal-CBJgrb_y.js} +44 -44
- package/dist/{ColorPicker-BzdHtZep.js → ColorPicker-a5yTVc0q.js} +66 -66
- package/dist/{CompanyModal-CGjSgTEJ.js → CompanyModal-sRTrUPOY.js} +18 -18
- package/dist/{ContentWrapper-CS-Bh4Bk.js → ContentWrapper-Cwd6t51-.js} +16 -16
- package/dist/{CoverBlockSettings-DDHQzLdc.js → CoverBlockSettings-8tjji9f1.js} +39 -39
- package/dist/{DocAnswer-Cmdsw_CW.js → DocAnswer-D1ZIH1Hn.js} +4 -4
- package/dist/{DocDetails-C5Vzh550.js → DocDetails-B5_hBzC-.js} +56 -56
- package/dist/{DocForm-DEUVV11n.js → DocForm-BKQvY0Ie.js} +821 -829
- package/dist/{DocFormSend-Dt7N3wCz.js → DocFormSend-z0W-xRJP.js} +11 -11
- package/dist/{DocLinks-C6-Er0rk.js → DocLinks-BgbDU24h.js} +6 -6
- package/dist/{DocModalBase-DbuJwHXi.js → DocModalBase-CNo1u8TK.js} +1 -1
- package/dist/{DocPrint-D_uxg7qD.js → DocPrint--UV846r0.js} +15 -15
- package/dist/{DocReceipt-D6LP9UAa.js → DocReceipt-BAkWIKbC.js} +23 -23
- package/dist/{DocSendReminder-DopLhyjz.js → DocSendReminder-Bk6IVg0R.js} +10 -10
- package/dist/{DocTextEditor-DeZtzbgm.js → DocTextEditor-D5zDbbXV.js} +4499 -4438
- package/dist/{DocTimeline-DAWZu_KT.js → DocTimeline-KG4zJJOW.js} +16 -16
- package/dist/{DocumentClient-kxnT6k9s.js → DocumentClient-CXSxwjOt.js} +12 -12
- package/dist/DocumentLayout-C-V_5p3r.js +595 -0
- package/dist/{DocumentLogotype-G-a7gBIC.js → DocumentLogotype-H0f7bO0E.js} +18 -18
- package/dist/{DocumentVoided-SG_ShMmc.js → DocumentVoided-3F7DChD4.js} +4 -4
- package/dist/{EmbedInput-CJL5y3Zj.js → EmbedInput-iG-cDNzZ.js} +8 -8
- package/dist/{EmbedSettings-B0X6A9Uy.js → EmbedSettings-DhwFGdKH.js} +12 -12
- package/dist/{ErrorCallout-xCSfpQWV.js → ErrorCallout-CyqQ9iRV.js} +10 -10
- package/dist/{FilePreviewModal-Da_pMUoO.js → FilePreviewModal-CEUhUuh4.js} +7 -7
- package/dist/{Flag-wXawyyMO.js → Flag-Bza5Ltob.js} +4 -4
- package/dist/{HeaderSettings-CD3y6-uY.js → HeaderSettings-kEbuiv0n.js} +36 -36
- package/dist/{ImageSelectModal-DatnXHH1.js → ImageSelectModal-MDduQIdS.js} +16 -16
- package/dist/{ImageUploadWrapper-CwKe3Iq7.js → ImageUploadWrapper-CKJXUAkn.js} +72 -72
- package/dist/{Index-BbVHxVFJ.js → Index--_tbiloB.js} +33 -33
- package/dist/{Index-y_AJP61r.js → Index-437smvNJ.js} +11 -11
- package/dist/{Index-ezY0DbcB.js → Index-8CyLDQv2.js} +5 -5
- package/dist/{Index-Cjg3X74T.js → Index-B1tFrOfN.js} +7 -7
- package/dist/{Index-Ct735UtM.js → Index-BFwz1G_7.js} +2 -2
- package/dist/{Index-BlownK7_.js → Index-BXqNV8F_.js} +7 -7
- package/dist/{Index-B53eUt7Y.js → Index-Bege0Vce.js} +15 -15
- package/dist/{Index-BTDQax0X.js → Index-Bg1kzWCp.js} +60 -59
- package/dist/{Index-9ZFW8Ka7.js → Index-C46cWm4W.js} +7 -7
- package/dist/{Index-C2-s62x7.js → Index-CGhWvSf9.js} +11 -11
- package/dist/{Index-D-gJQEAD.js → Index-CHIQWumi.js} +6 -6
- package/dist/{Index-CQboLS2e.js → Index-CNQhKXtr.js} +8 -8
- package/dist/{Index-COF0evH4.js → Index-CUDi4SEx.js} +6 -6
- package/dist/{Index-Bb6JZC8l.js → Index-ClA923dR.js} +11 -11
- package/dist/{Index-1WPEpaVr.js → Index-D2A8evjo.js} +7 -7
- package/dist/{Index-BvAqglwa.js → Index-D4XDugcf.js} +27 -27
- package/dist/{Index-GPliVrhC.js → Index-DB3keB-X.js} +7 -7
- package/dist/{Index-BJf4YdYB.js → Index-DQLLCnjH.js} +29 -29
- package/dist/{Index-Dfy0PsiW.js → Index-DUM-3B1l.js} +29 -29
- package/dist/{Index-Ck-_9woY.js → Index-DdZo8evS.js} +456 -461
- package/dist/{Index-CTrX3VRa.js → Index-Doc7K3kL.js} +5 -5
- package/dist/{Index-DfuzxXzD.js → Index-Dqfwe7SG.js} +2 -2
- package/dist/{Index-NnBwJv9v.js → Index-DtCuzght.js} +9 -9
- package/dist/{Index-DOeHci16.js → Index-DtDRffCY.js} +7 -7
- package/dist/{Index-C-EUJjuk.js → Index-DzKdZg0G.js} +2 -2
- package/dist/{Index-yS5OPrJJ.js → Index-DzugmOmj.js} +2 -2
- package/dist/{Index-DjfbgA_7.js → Index-E7OzmtR_.js} +30 -27
- package/dist/{Index-DkQ8_VkX.js → Index-MmvJQvLm.js} +194 -218
- package/dist/{Index-Dxg4gEKd.js → Index-Rb5n5XoO.js} +18 -18
- package/dist/{Index-DAkq_7Ws.js → Index-dTgmxz_A.js} +18 -18
- package/dist/{Index-Ciy9lnhS.js → Index-eJiQmHhr.js} +2 -2
- package/dist/Index-jQsYOOC3.js +4 -0
- package/dist/{Index-DzdEqsZB.js → Index-rINXTjpt.js} +16 -16
- package/dist/Index-zRXdiRpy.js +49 -0
- package/dist/{Index.vue_vue_type_script_lang-B3RoDZmC.js → Index.vue_vue_type_script_lang-B9979oeS.js} +2 -2
- package/dist/{InputToggleRow-D5rvQpAw.js → InputToggleRow-CO4fZnAC.js} +15 -15
- package/dist/{ManualPopover-Bd-GsLGT.js → ManualPopover-DT4iXoSI.js} +6 -6
- package/dist/{MediaWrapper-Ci0XPCcb.js → MediaWrapper-CP_1JzGI.js} +4 -4
- package/dist/{NotBindingText-DhndGZE3.js → NotBindingText-D9Um3Agp.js} +2 -2
- package/dist/{PackageGroup-4Jt9ClVO.js → PackageGroup-BtH12jVM.js} +103 -103
- package/dist/{PdfTerms-CGeJDJpQ.js → PdfTerms-sQh93Xit.js} +9 -9
- package/dist/{PdfViewer-o2vb6Fya.js → PdfViewer-DMAcTVND.js} +71 -71
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js → PlainHtml.vue_vue_type_script_setup_true_lang-tY-SurWr.js} +2 -2
- package/dist/{PriceHeader-BsObxLHK.js → PriceHeader-CG6el7O_.js} +31 -31
- package/dist/{SearchApi-ZczKsBb7.js → SearchApi-B39mMGKy.js} +6 -6
- package/dist/{SendForm-D5jqkofo.js → SendForm-F5aQPz8w.js} +780 -778
- package/dist/{Setup-CdZzn0qW.js → Setup-DuHU2eHC.js} +4 -4
- package/dist/{SmartList-B36ffGAZ.js → SmartList-myMj6QGe.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js → Sortable.vue_vue_type_script_setup_true_lang-Bb2Nqdsz.js} +118 -118
- package/dist/{TermsSettings-CmAHVOuX.js → TermsSettings-Cb6Xms3f.js} +16 -16
- package/dist/{ThemeColorRow-CScTIcPB.js → ThemeColorRow-oW3xS1pa.js} +13 -13
- package/dist/{ToggleBinding-CVZZlpBR.js → ToggleBinding-B-F9_nAf.js} +7 -7
- package/dist/{UploadModal-2tXsmGMM.js → UploadModal-eBx4Vqyo.js} +19 -19
- package/dist/{VideoPlayerInput-BDzjZ2St.js → VideoPlayerInput-CtTe4JW4.js} +10 -10
- package/dist/{VideoPlayerSettings-BLAEZw4C.js → VideoPlayerSettings-Cvz5B4JX.js} +9 -9
- package/dist/{VideoSelectModal-iqgmg85K.js → VideoSelectModal-CXI0aN4g.js} +19 -19
- package/dist/{focusDrawerMixin-BmyahQiE.js → focusDrawerMixin-DlcYhFw8.js} +1 -1
- package/dist/{formDrawerState-B7ASfNsk.js → formDrawerState-Cf6Q5cuR.js} +1 -1
- package/dist/{helpers-BVP2Pul1.js → helpers-Cf9wqfZh.js} +4 -4
- package/dist/{index-D0Qee2OX.js → index-BSCAjn53.js} +31 -31
- package/dist/{index-Cd4S4J-L.js → index-BStFMzD9.js} +56 -56
- package/dist/{index-BDb4bM0D.js → index-BytsFarx.js} +24 -24
- package/dist/{index-DXNrJnEc.js → index-Co_PpOtI.js} +10 -10
- package/dist/{index-BH5vwOzR.js → index-DPlBYqKB.js} +9 -9
- package/dist/{index-B86TZXOh.js → index-DsvlNA3Q.js} +94 -94
- package/dist/{index-CsbYpQqP.js → index-r5v1Gv17.js} +57 -57
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +153 -158
- package/dist/{main-C2Q8_T2Y.js → main-BkjAGG46.js} +14298 -14373
- package/dist/{mapFormMixin-CjfqZnmd.js → mapFormMixin-DLFNPgNO.js} +34 -40
- package/dist/omit-CvOSNZN7.js +56 -0
- package/dist/{publicSenderState-C3ELW8Cw.js → publicSenderState-DeC1m0ps.js} +4 -4
- package/dist/{splitpanes-CuxtOZyV.js → splitpanes-CsJipBiG.js} +6 -6
- package/dist/{template-DzrGrOEa.js → template-Cvzvayl5.js} +6 -6
- package/dist/{tippy.esm-Bf86qEue.js → tippy.esm-JEjGtE5F.js} +273 -275
- package/dist/{useTermsModal-Be4HLDDm.js → useTermsModal-D2gYy-TP.js} +7 -7
- package/dist/{utils-a_Odlqb5.js → utils-DarTPA8c.js} +1 -1
- package/dist/{validation-38muBV6x.js → validation-K11g55ZB.js} +4 -4
- package/dist/widget.css +1 -1
- package/package.json +2 -2
- package/dist/DocumentLayout-DaVz9SGF.js +0 -1434
- package/dist/Index-CXjLkK_n.js +0 -49
- package/dist/Index-qFx0G3fC.js +0 -4
- package/dist/omit-DzlbtNCX.js +0 -56
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { o as
|
|
3
|
-
import { w as
|
|
4
|
-
import {
|
|
1
|
+
import et from "./AnswerModal-C_vekdpA.js";
|
|
2
|
+
import { o as tt } from "./index-BytsFarx.js";
|
|
3
|
+
import { w as Q, C as q, a as re } from "./CDropdownItem-B9dja0RC.js";
|
|
4
|
+
import { _ as F, m as Z, cN as ye, g as P, b as m, d as p, o as l, j as a, f as c, t as d, w as u, q as _, e as v, W as z, al as ne, an as j, x as V, T as A, aU as J, c as C, ap as W, R as be, F as I, a7 as de, z as nt, A as xe, H, p as Te, i as K, a2 as De, cO as it, I as O, af as M, n as E, a as R, cP as ot, y as st, X as ke, s as Ae, S as at, aF as Se, Y as te, cL as lt, a4 as ie, u as G, ai as rt, aE as dt, aB as we, k as le, cf as Ee, cg as ze, v as ve, l as ct, a6 as Ie, ch as ut, cQ as ue, cR as mt, bm as pt, a0 as Re, cS as ht, aa as Oe, cT as ft, cU as gt, aK as He, r as yt, aD as Ce, aA as Ue, cV as vt, cW as Ct, cX as bt, az as kt, a9 as wt, cY as _t, cZ as xt, c_ as Tt, C as qe, c$ as Dt, d0 as St, d1 as It, ci as $t, d2 as Ft, d3 as Lt, b0 as Vt, d4 as Bt, d5 as Mt } from "./main-BkjAGG46.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import {
|
|
7
|
-
import { F as Ge, d as
|
|
8
|
-
import { m as
|
|
9
|
-
import "./helpers-
|
|
10
|
-
import { a as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { C as
|
|
13
|
-
import { _ as _e } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { S as
|
|
15
|
-
import { u as je } from "./index-
|
|
16
|
-
import { r as Fe, a as
|
|
17
|
-
import { o as
|
|
18
|
-
import { s as
|
|
19
|
-
import { s as
|
|
20
|
-
import { S as
|
|
21
|
-
import "./template-
|
|
22
|
-
import { u as
|
|
23
|
-
import { C as
|
|
24
|
-
import { C as
|
|
25
|
-
import { B as
|
|
26
|
-
const
|
|
6
|
+
import { g as Pt, l as At, _ as Et, a as zt, D as Rt } from "./DocumentLayout-C-V_5p3r.js";
|
|
7
|
+
import { F as Ge, d as Ot } from "./tippy.esm-JEjGtE5F.js";
|
|
8
|
+
import { m as oe, c as $e, u as Ne, i as Ht } from "./mapFormMixin-DLFNPgNO.js";
|
|
9
|
+
import "./helpers-Cf9wqfZh.js";
|
|
10
|
+
import { a as Ut } from "./ClientAutocomplete-B_R7zgvM.js";
|
|
11
|
+
import { _ as qt } from "./Sortable.vue_vue_type_script_setup_true_lang-Bb2Nqdsz.js";
|
|
12
|
+
import { C as Gt, _ as We, a as X, I as ee, s as Nt } from "./index-r5v1Gv17.js";
|
|
13
|
+
import { _ as _e } from "./CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.js";
|
|
14
|
+
import { S as Wt } from "./SmartList-myMj6QGe.js";
|
|
15
|
+
import { u as je } from "./index-DsvlNA3Q.js";
|
|
16
|
+
import { r as Fe, a as jt } from "./index-DPlBYqKB.js";
|
|
17
|
+
import { o as Zt, r as Kt } from "./omit-CvOSNZN7.js";
|
|
18
|
+
import { s as N } from "./formDrawerState-Cf6Q5cuR.js";
|
|
19
|
+
import { s as Qt } from "./dom-DOcGU3-g.js";
|
|
20
|
+
import { S as Yt } from "./SendForm-F5aQPz8w.js";
|
|
21
|
+
import "./template-Cvzvayl5.js";
|
|
22
|
+
import { u as Jt } from "./validation-K11g55ZB.js";
|
|
23
|
+
import { C as Xt } from "./CCallout-BPCwr3uM.js";
|
|
24
|
+
import { C as en } from "./CSkeleton-h81Vudx0.js";
|
|
25
|
+
import { B as tn } from "./BlockMedia-Hbm0GWNw.js";
|
|
26
|
+
const nn = {
|
|
27
27
|
name: "DocumentPostSendStep",
|
|
28
|
-
mixins: [
|
|
28
|
+
mixins: [Q],
|
|
29
29
|
i18nOptions: {
|
|
30
30
|
namespaces: "PostDocumentSend",
|
|
31
31
|
messages: {
|
|
@@ -66,10 +66,10 @@ 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
|
+
...Z({
|
|
70
|
+
updateDocument: P.DO_UPDATE_DOCUMENT2,
|
|
71
|
+
answerDocument: P.ANSWER_OWN_DOCUMENT2,
|
|
72
|
+
sendDocument: P.DO_SEND_DOCUMENT2
|
|
73
73
|
}),
|
|
74
74
|
async handleDocumentLinks() {
|
|
75
75
|
const { id: e } = this.document || {}, t = ye(this.document), n = !t.sms && !t.email;
|
|
@@ -77,7 +77,7 @@ const sn = {
|
|
|
77
77
|
id: e,
|
|
78
78
|
body: { status: "sent" },
|
|
79
79
|
showMessage: !1
|
|
80
|
-
}),
|
|
80
|
+
}), tt({ 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
|
+
et,
|
|
98
98
|
{
|
|
99
99
|
_document: this.document,
|
|
100
100
|
isSender: !0,
|
|
@@ -136,12 +136,12 @@ const sn = {
|
|
|
136
136
|
this.onCloseFunc && this.onCloseFunc();
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
},
|
|
140
|
-
function
|
|
139
|
+
}, on = { class: "font-inter root" }, sn = { class: "container" }, an = { class: "icon-wrapper" }, ln = ["textContent"];
|
|
140
|
+
function rn(e, t, n, s, i, o) {
|
|
141
141
|
const r = m("CIcon"), g = m("CButton");
|
|
142
|
-
return l(), p("div",
|
|
143
|
-
a("div",
|
|
144
|
-
a("div",
|
|
142
|
+
return l(), p("div", on, [
|
|
143
|
+
a("div", sn, [
|
|
144
|
+
a("div", an, [
|
|
145
145
|
c(r, {
|
|
146
146
|
size: 20,
|
|
147
147
|
type: "email"
|
|
@@ -150,7 +150,7 @@ function cn(e, t, n, s, i, o) {
|
|
|
150
150
|
a("div", {
|
|
151
151
|
class: "title",
|
|
152
152
|
textContent: d(e.$t("title"))
|
|
153
|
-
}, null, 8,
|
|
153
|
+
}, null, 8, ln),
|
|
154
154
|
t[0] || (t[0] = a("div", { class: "divider" }, null, -1)),
|
|
155
155
|
c(g, {
|
|
156
156
|
type: "secondary",
|
|
@@ -165,7 +165,7 @@ function cn(e, t, n, s, i, o) {
|
|
|
165
165
|
])
|
|
166
166
|
]);
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const dn = /* @__PURE__ */ F(nn, [["render", rn], ["__scopeId", "data-v-574be9ee"]]), cn = {
|
|
169
169
|
name: "Drawer",
|
|
170
170
|
props: {
|
|
171
171
|
modelValue: {
|
|
@@ -209,13 +209,13 @@ const un = /* @__PURE__ */ $(sn, [["render", cn], ["__scopeId", "data-v-574be9ee
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
|
-
function
|
|
212
|
+
function un(e, t, n, s, i, o) {
|
|
213
213
|
return l(), p("div", null, [
|
|
214
|
-
c(
|
|
214
|
+
c(ne, { name: "fade" }, {
|
|
215
215
|
default: u(() => [
|
|
216
216
|
!n.hideOverlay && n.modelValue ? (l(), p("div", {
|
|
217
217
|
key: 0,
|
|
218
|
-
style:
|
|
218
|
+
style: z({
|
|
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(ne, {
|
|
227
227
|
name: `slide-${n.placement}`
|
|
228
228
|
}, {
|
|
229
229
|
default: u(() => [
|
|
230
230
|
n.modelValue ? (l(), p("div", {
|
|
231
231
|
key: 0,
|
|
232
|
-
class:
|
|
233
|
-
style:
|
|
232
|
+
class: V([[n.placement], "d-content"]),
|
|
233
|
+
style: z({
|
|
234
234
|
zIndex: n.zIndex
|
|
235
235
|
}),
|
|
236
|
-
onClick: t[0] || (t[0] =
|
|
236
|
+
onClick: t[0] || (t[0] = j((...r) => o.onOutsideClick && o.onOutsideClick(...r), ["self"]))
|
|
237
237
|
}, [
|
|
238
238
|
a("div", {
|
|
239
|
-
style:
|
|
239
|
+
style: z({
|
|
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
|
+
A(e.$slots, "default", {}, void 0, !0)
|
|
250
250
|
], 4)
|
|
251
251
|
], 6)) : v("", !0)
|
|
252
252
|
]),
|
|
@@ -254,10 +254,10 @@ function pn(e, t, n, s, i, o) {
|
|
|
254
254
|
}, 8, ["name"])
|
|
255
255
|
]);
|
|
256
256
|
}
|
|
257
|
-
const Ze = /* @__PURE__ */
|
|
257
|
+
const Ze = /* @__PURE__ */ F(cn, [["render", un], ["__scopeId", "data-v-05571167"]]), mn = {
|
|
258
258
|
name: "DocumentDrawer",
|
|
259
259
|
components: {
|
|
260
|
-
simplebar:
|
|
260
|
+
simplebar: J,
|
|
261
261
|
Drawer: Ze
|
|
262
262
|
},
|
|
263
263
|
props: {
|
|
@@ -280,14 +280,14 @@ const Ze = /* @__PURE__ */ $(mn, [["render", pn], ["__scopeId", "data-v-05571167
|
|
|
280
280
|
}
|
|
281
281
|
},
|
|
282
282
|
emits: ["update:open"]
|
|
283
|
-
},
|
|
284
|
-
function
|
|
285
|
-
return l(), C(
|
|
283
|
+
}, pn = { style: { height: "100%", "z-index": "110" } }, hn = { style: { height: "100%", overflow: "auto" } };
|
|
284
|
+
function fn(e, t, n, s, i, o) {
|
|
285
|
+
return l(), C(ne, {
|
|
286
286
|
name: n.fixed ? void 0 : "grow-anim",
|
|
287
287
|
mode: "out-in"
|
|
288
288
|
}, {
|
|
289
289
|
default: u(() => [
|
|
290
|
-
n.open ? (l(), C(
|
|
290
|
+
n.open ? (l(), C(W(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
|
-
a("div",
|
|
304
|
-
a("div",
|
|
303
|
+
a("div", pn, [
|
|
304
|
+
a("div", hn, [
|
|
305
305
|
a("div", {
|
|
306
|
-
style:
|
|
306
|
+
style: z(
|
|
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
|
+
A(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
|
|
326
|
+
const gn = /* @__PURE__ */ F(mn, [["render", fn], ["__scopeId", "data-v-cd55344e"]]), yn = {
|
|
327
327
|
name: "DocumentFormNav"
|
|
328
|
-
},
|
|
329
|
-
function
|
|
330
|
-
return l(), p("div",
|
|
331
|
-
a("div",
|
|
332
|
-
a("div",
|
|
333
|
-
|
|
328
|
+
}, vn = { class: "DocumentFormNav fixed left-0 right-0 top-0 z-[98] bg-gray-200 px-2 py-2 shadow-lg md:px-6" }, Cn = { class: "flex" }, bn = { class: "inline-flex flex-grow items-center" }, kn = { class: "inline-flex flex-auto items-center justify-center" }, wn = { class: "inline-flex flex-grow items-center justify-end" };
|
|
329
|
+
function _n(e, t, n, s, i, o) {
|
|
330
|
+
return l(), p("div", vn, [
|
|
331
|
+
a("div", Cn, [
|
|
332
|
+
a("div", bn, [
|
|
333
|
+
A(e.$slots, "left")
|
|
334
334
|
]),
|
|
335
|
-
a("div",
|
|
336
|
-
|
|
335
|
+
a("div", kn, [
|
|
336
|
+
A(e.$slots, "center")
|
|
337
337
|
]),
|
|
338
|
-
a("div",
|
|
339
|
-
|
|
338
|
+
a("div", wn, [
|
|
339
|
+
A(e.$slots, "right")
|
|
340
340
|
])
|
|
341
341
|
])
|
|
342
342
|
]);
|
|
343
343
|
}
|
|
344
|
-
const
|
|
344
|
+
const xn = /* @__PURE__ */ F(yn, [["render", _n]]), Tn = {
|
|
345
345
|
name: "DocumentFormViewRadio",
|
|
346
346
|
props: {
|
|
347
347
|
modelValue: {
|
|
@@ -354,12 +354,12 @@ const Dn = /* @__PURE__ */ $(Cn, [["render", Tn]]), Sn = {
|
|
|
354
354
|
}
|
|
355
355
|
},
|
|
356
356
|
emits: ["update:modelValue"]
|
|
357
|
-
},
|
|
358
|
-
function
|
|
357
|
+
}, Dn = { class: "inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 text-sm text-white" };
|
|
358
|
+
function Sn(e, t, n, s, i, o) {
|
|
359
359
|
const r = m("CIcon");
|
|
360
|
-
return l(), p("div",
|
|
360
|
+
return l(), p("div", Dn, [
|
|
361
361
|
a("div", {
|
|
362
|
-
class:
|
|
362
|
+
class: V([{
|
|
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)
|
|
@@ -368,12 +368,12 @@ function $n(e, t, n, s, i, o) {
|
|
|
368
368
|
key: 0,
|
|
369
369
|
type: "edit",
|
|
370
370
|
size: "20"
|
|
371
|
-
})) : (l(), p(
|
|
371
|
+
})) : (l(), p(I, { key: 1 }, [
|
|
372
372
|
_(d(e.$t("edit")), 1)
|
|
373
373
|
], 64))
|
|
374
374
|
], 2),
|
|
375
375
|
a("div", {
|
|
376
|
-
class:
|
|
376
|
+
class: V([{
|
|
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",
|
|
@@ -383,13 +383,13 @@ function $n(e, t, n, s, i, o) {
|
|
|
383
383
|
key: 0,
|
|
384
384
|
type: "eye",
|
|
385
385
|
size: "20"
|
|
386
|
-
})) : (l(), p(
|
|
386
|
+
})) : (l(), p(I, { key: 1 }, [
|
|
387
387
|
_(d(e.$t("preview")), 1)
|
|
388
388
|
], 64))
|
|
389
389
|
], 2)
|
|
390
390
|
]);
|
|
391
391
|
}
|
|
392
|
-
const
|
|
392
|
+
const In = /* @__PURE__ */ F(Tn, [["render", Sn]]), $n = {
|
|
393
393
|
name: "BlockControlButtons",
|
|
394
394
|
i18nOptions: {
|
|
395
395
|
namespace: "blockControlButtons",
|
|
@@ -421,31 +421,31 @@ const Fn = /* @__PURE__ */ $(Sn, [["render", $n]]), Ln = {
|
|
|
421
421
|
return typeof this.isVisible == "boolean" && !this.isVisible;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
},
|
|
424
|
+
}, Fn = { class: "control-root flex gap-2" }, Ln = {
|
|
425
425
|
key: 0,
|
|
426
426
|
class: "px-1.5 text-xs text-gray-600"
|
|
427
|
-
},
|
|
427
|
+
}, Vn = {
|
|
428
428
|
key: 1,
|
|
429
429
|
class: "flex flex-col gap-1.5"
|
|
430
|
-
},
|
|
431
|
-
function
|
|
430
|
+
}, Bn = { class: "control-direction" };
|
|
431
|
+
function Mn(e, t, n, s, i, o) {
|
|
432
432
|
const r = m("CIcon");
|
|
433
|
-
return l(), p("div",
|
|
433
|
+
return l(), p("div", Fn, [
|
|
434
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) : (l(), p("span",
|
|
439
|
+
n.isVisible ? v("", !0) : (l(), p("span", Ln, d(e.$t("hidden")), 1)),
|
|
440
440
|
c(r, {
|
|
441
441
|
type: n.isVisible ? "eye" : "eye-off",
|
|
442
442
|
size: "14",
|
|
443
|
-
class:
|
|
443
|
+
class: V({ "mr-1": !n.isVisible })
|
|
444
444
|
}, null, 8, ["type", "class"])
|
|
445
445
|
])) : v("", !0),
|
|
446
|
-
|
|
447
|
-
!o.isHidden && n.isMovable ? (l(), p("div",
|
|
448
|
-
a("div",
|
|
446
|
+
A(e.$slots, "default", {}, void 0, !0),
|
|
447
|
+
!o.isHidden && n.isMovable ? (l(), p("div", Vn, [
|
|
448
|
+
a("div", Bn, [
|
|
449
449
|
a("div", {
|
|
450
450
|
class: "control-button",
|
|
451
451
|
onClick: t[1] || (t[1] = (g) => e.$emit("move", "up"))
|
|
@@ -477,7 +477,7 @@ function An(e, t, n, s, i, o) {
|
|
|
477
477
|
])) : v("", !0)
|
|
478
478
|
]);
|
|
479
479
|
}
|
|
480
|
-
const
|
|
480
|
+
const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-2b534db7"]]), An = ["inert"], En = /* @__PURE__ */ de({
|
|
481
481
|
__name: "DynamicBlock",
|
|
482
482
|
props: {
|
|
483
483
|
isDragging: { type: Boolean, default: !1 },
|
|
@@ -490,7 +490,7 @@ const En = /* @__PURE__ */ $(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 } =
|
|
493
|
+
const n = t, { uid: s } = nt(), i = xe(!1), o = xe(() => n("edit", s)), r = H(() => typeof e.isVisible == "boolean" && !e.isVisible), g = H(() => e.isEditView ? !e.isDragging && i.value ? !0 : r.value : !1), h = H(() => 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
494
|
typeof k == "function" && (o.value = k);
|
|
495
495
|
};
|
|
496
496
|
return Te("sectionTopNode", s), Te("setOpenDrawer", b), (k, w) => {
|
|
@@ -498,7 +498,7 @@ const En = /* @__PURE__ */ $(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
498
498
|
return l(), C(D, { class: "w-full" }, {
|
|
499
499
|
default: u(() => [
|
|
500
500
|
a("div", {
|
|
501
|
-
class:
|
|
501
|
+
class: V([[
|
|
502
502
|
{
|
|
503
503
|
"is-edit-view": k.isEditView,
|
|
504
504
|
"is-hovering": i.value,
|
|
@@ -507,7 +507,7 @@ const En = /* @__PURE__ */ $(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
507
507
|
},
|
|
508
508
|
h.value
|
|
509
509
|
], "block-root"]),
|
|
510
|
-
style:
|
|
510
|
+
style: z(
|
|
511
511
|
k.isDragging && {
|
|
512
512
|
pointerEvents: "none"
|
|
513
513
|
}
|
|
@@ -516,12 +516,12 @@ const En = /* @__PURE__ */ $(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
516
516
|
onMouseleavePassive: w[4] || (w[4] = (y) => i.value = !1)
|
|
517
517
|
}, [
|
|
518
518
|
a("div", {
|
|
519
|
-
class:
|
|
519
|
+
class: V(["block-container", { "spacing-snug": r.value }]),
|
|
520
520
|
inert: r.value
|
|
521
521
|
}, [
|
|
522
|
-
|
|
523
|
-
], 10,
|
|
524
|
-
g.value ? (l(), C(
|
|
522
|
+
A(k.$slots, "default", {}, void 0, !0)
|
|
523
|
+
], 10, An),
|
|
524
|
+
g.value ? (l(), C(Pn, {
|
|
525
525
|
key: 0,
|
|
526
526
|
class: "control-root z-10",
|
|
527
527
|
"is-movable": k.canMove,
|
|
@@ -554,7 +554,7 @@ const En = /* @__PURE__ */ $(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
554
554
|
});
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
}),
|
|
557
|
+
}), zn = /* @__PURE__ */ F(En, [["__scopeId", "data-v-9cab60b2"]]), Rn = {
|
|
558
558
|
name: "LogoBanner",
|
|
559
559
|
props: {
|
|
560
560
|
position: {
|
|
@@ -567,14 +567,14 @@ const En = /* @__PURE__ */ $(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
567
567
|
},
|
|
568
568
|
computed: {
|
|
569
569
|
logoUrl() {
|
|
570
|
-
const { brand: e } =
|
|
571
|
-
return
|
|
570
|
+
const { brand: e } = K;
|
|
571
|
+
return `/img/${e}/icons/apple-touch-icon-60x60.png`;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
},
|
|
575
|
-
function
|
|
574
|
+
}, On = ["href"], Hn = { class: "mr-2 h-5 w-5 overflow-hidden rounded bg-white" }, Un = ["src", "alt"], qn = { class: "text-xs font-medium text-white" };
|
|
575
|
+
function Gn(e, t, n, s, i, o) {
|
|
576
576
|
return l(), p("div", {
|
|
577
|
-
class:
|
|
577
|
+
class: V([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",
|
|
@@ -583,18 +583,18 @@ function Wn(e, t, n, s, i, o) {
|
|
|
583
583
|
)}?utm_source=document&utm_medium=logo-banner`,
|
|
584
584
|
target: "_blank"
|
|
585
585
|
}, [
|
|
586
|
-
a("div",
|
|
586
|
+
a("div", Hn, [
|
|
587
587
|
a("img", {
|
|
588
588
|
src: o.logoUrl,
|
|
589
589
|
alt: e.$t("brand.name"),
|
|
590
590
|
class: "h-full w-full"
|
|
591
|
-
}, null, 8,
|
|
591
|
+
}, null, 8, Un)
|
|
592
592
|
]),
|
|
593
|
-
a("div",
|
|
594
|
-
], 8,
|
|
593
|
+
a("div", qn, " Made in " + d(e.$t("brand.name")), 1)
|
|
594
|
+
], 8, On)
|
|
595
595
|
], 2);
|
|
596
596
|
}
|
|
597
|
-
const
|
|
597
|
+
const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-full w-full" }, jn = { class: "mb-4 text-xl font-bold" }, Ke = /* @__PURE__ */ de({
|
|
598
598
|
__name: "DragWindow",
|
|
599
599
|
props: {
|
|
600
600
|
offset: {},
|
|
@@ -602,7 +602,7 @@ const jn = /* @__PURE__ */ $(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 = De("el"), i = De("handle"), { style: o } =
|
|
605
|
+
const n = t, s = De("el"), i = De("handle"), { style: o } = it(s, {
|
|
606
606
|
handle: i,
|
|
607
607
|
initialValue: { x: e.offset + 15, y: 70 }
|
|
608
608
|
});
|
|
@@ -613,10 +613,10 @@ const jn = /* @__PURE__ */ $(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
613
613
|
a("div", {
|
|
614
614
|
ref_key: "el",
|
|
615
615
|
ref: s,
|
|
616
|
-
style:
|
|
616
|
+
style: z(O(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
|
-
a("div",
|
|
619
|
+
a("div", Wn, [
|
|
620
620
|
c(h, {
|
|
621
621
|
icon: "x",
|
|
622
622
|
size: "small",
|
|
@@ -636,8 +636,8 @@ const jn = /* @__PURE__ */ $(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
|
-
a("div",
|
|
640
|
-
|
|
639
|
+
a("div", jn, d(r.title), 1),
|
|
640
|
+
A(r.$slots, "default")
|
|
641
641
|
])
|
|
642
642
|
], 4)
|
|
643
643
|
]),
|
|
@@ -645,7 +645,7 @@ const jn = /* @__PURE__ */ $(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
645
645
|
});
|
|
646
646
|
};
|
|
647
647
|
}
|
|
648
|
-
}),
|
|
648
|
+
}), Zn = /([\d+.]*)(.*)/, Y = (e) => (e || "").match(Zn), Kn = {
|
|
649
649
|
i18nOptions: {
|
|
650
650
|
namespaces: "common",
|
|
651
651
|
keyPrefix: "designLabels"
|
|
@@ -655,7 +655,7 @@ const jn = /* @__PURE__ */ $(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
655
655
|
FormInputRow: Ge,
|
|
656
656
|
DragWindow: Ke
|
|
657
657
|
},
|
|
658
|
-
mixins: [
|
|
658
|
+
mixins: [oe(["css"], { useEmit: !1, setFnName: "set" })],
|
|
659
659
|
props: {
|
|
660
660
|
set: {
|
|
661
661
|
type: Function,
|
|
@@ -720,7 +720,7 @@ const jn = /* @__PURE__ */ $(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 = M(this.css, `${this.activeItem.selector}.fontWeight`) || M(this.activeItem, "style.fontWeight") || "400";
|
|
724
724
|
return {
|
|
725
725
|
label: this.$t("font"),
|
|
726
726
|
inputs: [
|
|
@@ -740,7 +740,7 @@ const jn = /* @__PURE__ */ $(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] = Y(t);
|
|
744
744
|
return {
|
|
745
745
|
label: this.$t("size"),
|
|
746
746
|
inputs: [
|
|
@@ -828,7 +828,7 @@ const jn = /* @__PURE__ */ $(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] = Y(t);
|
|
832
832
|
return {
|
|
833
833
|
label: this.$t("letterSpacing"),
|
|
834
834
|
inputs: [
|
|
@@ -859,7 +859,7 @@ const jn = /* @__PURE__ */ $(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] = Y(t);
|
|
863
863
|
return {
|
|
864
864
|
label: this.$t("marginBottom"),
|
|
865
865
|
inputs: [
|
|
@@ -940,7 +940,7 @@ const jn = /* @__PURE__ */ $(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] = Y(t);
|
|
944
944
|
return {
|
|
945
945
|
label: this.$t("contentWidth"),
|
|
946
946
|
inputs: [
|
|
@@ -980,7 +980,7 @@ const jn = /* @__PURE__ */ $(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] = Y(t);
|
|
984
984
|
return {
|
|
985
985
|
label: this.$t("padding"),
|
|
986
986
|
inputs: [
|
|
@@ -1020,7 +1020,7 @@ const jn = /* @__PURE__ */ $(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] = Y(t.value), o = [
|
|
1024
1024
|
{
|
|
1025
1025
|
label: this.$t("border"),
|
|
1026
1026
|
inputs: [
|
|
@@ -1188,7 +1188,7 @@ const jn = /* @__PURE__ */ $(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 = M(this.css, e) || {}, i = (o) => s[o] || n[o];
|
|
1192
1192
|
return this[t].map(({ option: o, key: r }, g) => {
|
|
1193
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);
|
|
@@ -1197,8 +1197,8 @@ const jn = /* @__PURE__ */ $(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
1197
1197
|
},
|
|
1198
1198
|
watch: {
|
|
1199
1199
|
async activeItem(e) {
|
|
1200
|
-
const t =
|
|
1201
|
-
t && (this.fontWeightOptions = await
|
|
1200
|
+
const t = M(e, "style.fontFamily");
|
|
1201
|
+
t && (this.fontWeightOptions = await Pt(t));
|
|
1202
1202
|
}
|
|
1203
1203
|
},
|
|
1204
1204
|
methods: {
|
|
@@ -1208,19 +1208,19 @@ const jn = /* @__PURE__ */ $(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
1208
1208
|
n[e] = t || "", this.css = { ...this.css, [this.activeItem.selector]: n };
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
|
-
},
|
|
1212
|
-
function
|
|
1211
|
+
}, Qn = { style: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, Yn = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, Jn = ["onClick"], Xn = { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, ei = { style: { padding: "calc(0.75 * var(--rem))" } }, ti = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, ni = ["onClick"], ii = { style: { "font-size": "1.075em", "font-weight": "500" } };
|
|
1212
|
+
function oi(e, t, n, s, i, o) {
|
|
1213
1213
|
const r = m("FormInputRow"), g = m("DragWindow");
|
|
1214
1214
|
return l(), p("div", null, [
|
|
1215
|
-
a("div",
|
|
1216
|
-
a("div",
|
|
1217
|
-
(l(!0), p(
|
|
1215
|
+
a("div", Qn, [
|
|
1216
|
+
a("div", Yn, d(e.$t("typography")), 1),
|
|
1217
|
+
(l(!0), p(I, null, E(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
1222
|
a("div", {
|
|
1223
|
-
style:
|
|
1223
|
+
style: z({
|
|
1224
1224
|
fontSize: h.fontSize,
|
|
1225
1225
|
fontFamily: h.style.fontFamily,
|
|
1226
1226
|
fontWeight: h.style.fontWeight,
|
|
@@ -1228,20 +1228,20 @@ function ai(e, t, n, s, i, o) {
|
|
|
1228
1228
|
lineHeight: 1
|
|
1229
1229
|
})
|
|
1230
1230
|
}, d(h.label), 5),
|
|
1231
|
-
a("div",
|
|
1232
|
-
], 8,
|
|
1231
|
+
a("div", Xn, d(h.style.fontFamily) + " " + d(h.style.fontSize), 1)
|
|
1232
|
+
], 8, Jn))), 128))
|
|
1233
1233
|
]),
|
|
1234
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",
|
|
1236
|
-
a("div",
|
|
1237
|
-
(l(!0), p(
|
|
1235
|
+
a("div", ei, [
|
|
1236
|
+
a("div", ti, d(e.$t("section_other")), 1),
|
|
1237
|
+
(l(!0), p(I, null, E(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
|
-
a("div",
|
|
1242
|
+
a("div", ii, d(h.label), 1),
|
|
1243
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
|
-
], 8,
|
|
1244
|
+
], 8, ni))), 128))
|
|
1245
1245
|
]),
|
|
1246
1246
|
i.activeItem ? (l(), C(g, {
|
|
1247
1247
|
key: 0,
|
|
@@ -1250,7 +1250,7 @@ function ai(e, t, n, s, i, o) {
|
|
|
1250
1250
|
onClose: t[0] || (t[0] = () => i.activeItem = null)
|
|
1251
1251
|
}, {
|
|
1252
1252
|
default: u(() => [
|
|
1253
|
-
(l(!0), p(
|
|
1253
|
+
(l(!0), p(I, null, E(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 ai(e, t, n, s, i, o) {
|
|
|
1260
1260
|
}, 8, ["title", "offset"])) : v("", !0)
|
|
1261
1261
|
]);
|
|
1262
1262
|
}
|
|
1263
|
-
const
|
|
1263
|
+
const si = /* @__PURE__ */ F(Kn, [["render", oi], ["__scopeId", "data-v-381aaa3c"]]), ai = {
|
|
1264
1264
|
i18nOptions: {
|
|
1265
1265
|
namespaces: "DocSettings",
|
|
1266
1266
|
messages: {
|
|
@@ -1352,7 +1352,7 @@ const li = /* @__PURE__ */ $(Yn, [["render", ai], ["__scopeId", "data-v-381aaa3c
|
|
|
1352
1352
|
DragWindow: Ke
|
|
1353
1353
|
},
|
|
1354
1354
|
mixins: [
|
|
1355
|
-
|
|
1355
|
+
oe([
|
|
1356
1356
|
"tags",
|
|
1357
1357
|
"series",
|
|
1358
1358
|
"senderId",
|
|
@@ -1376,7 +1376,7 @@ const li = /* @__PURE__ */ $(Yn, [["render", ai], ["__scopeId", "data-v-381aaa3c
|
|
|
1376
1376
|
};
|
|
1377
1377
|
},
|
|
1378
1378
|
computed: {
|
|
1379
|
-
...
|
|
1379
|
+
...R({
|
|
1380
1380
|
members: "companyUsers/all",
|
|
1381
1381
|
getMember: "companyUsers/byId",
|
|
1382
1382
|
isLoadingMembers: "companyUsers/isFetching"
|
|
@@ -1390,7 +1390,7 @@ const li = /* @__PURE__ */ $(Yn, [["render", ai], ["__scopeId", "data-v-381aaa3c
|
|
|
1390
1390
|
vatTypes() {
|
|
1391
1391
|
var t;
|
|
1392
1392
|
const e = ["vat"];
|
|
1393
|
-
return ((t = st[
|
|
1393
|
+
return ((t = st[K.brand]) == null ? void 0 : t.defaultRegion) === "US" && e.push("tax"), e;
|
|
1394
1394
|
},
|
|
1395
1395
|
options() {
|
|
1396
1396
|
return [
|
|
@@ -1421,7 +1421,7 @@ const li = /* @__PURE__ */ $(Yn, [["render", ai], ["__scopeId", "data-v-381aaa3c
|
|
|
1421
1421
|
component: "select",
|
|
1422
1422
|
props: {
|
|
1423
1423
|
value: this.language,
|
|
1424
|
-
options:
|
|
1424
|
+
options: ot.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 li = /* @__PURE__ */ $(Yn, [["render", ai], ["__scopeId", "data-v-381aaa3c
|
|
|
1574
1574
|
this.isPublicForm || await this.loadUsers();
|
|
1575
1575
|
},
|
|
1576
1576
|
methods: {
|
|
1577
|
-
...
|
|
1578
|
-
loadUsers:
|
|
1577
|
+
...Z({
|
|
1578
|
+
loadUsers: P.LOAD_COMPANY_USERS
|
|
1579
1579
|
}),
|
|
1580
1580
|
update(e, t) {
|
|
1581
1581
|
this[e] = t;
|
|
@@ -1593,14 +1593,14 @@ const li = /* @__PURE__ */ $(Yn, [["render", ai], ["__scopeId", "data-v-381aaa3c
|
|
|
1593
1593
|
n.push({ name: e, type: "category" }), this.tags = n, this.series = e;
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
|
-
},
|
|
1596
|
+
}, li = { style: { height: "100%", padding: "1em" } }, ri = {
|
|
1597
1597
|
key: 0,
|
|
1598
1598
|
class: "divider"
|
|
1599
1599
|
};
|
|
1600
|
-
function
|
|
1600
|
+
function di(e, t, n, s, i, o) {
|
|
1601
1601
|
const r = m("FormInputRow"), g = m("DragWindow");
|
|
1602
|
-
return l(), p("div",
|
|
1603
|
-
(l(!0), p(
|
|
1602
|
+
return l(), p("div", li, [
|
|
1603
|
+
(l(!0), p(I, null, E(o.options, (h, b) => (l(), C(r, {
|
|
1604
1604
|
key: b,
|
|
1605
1605
|
label: h.label,
|
|
1606
1606
|
"info-tooltip": h.infoTooltip,
|
|
@@ -1613,8 +1613,8 @@ function ui(e, t, n, s, i, o) {
|
|
|
1613
1613
|
onClose: t[0] || (t[0] = (h) => i.showDragWindow = !1)
|
|
1614
1614
|
}, {
|
|
1615
1615
|
default: u(() => [
|
|
1616
|
-
(l(!0), p(
|
|
1617
|
-
h.type === "divider" ? (l(), p("div",
|
|
1616
|
+
(l(!0), p(I, null, E(o.priceOptions, (h, b) => (l(), p(I, { key: b }, [
|
|
1617
|
+
h.type === "divider" ? (l(), p("div", ri)) : (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
|
|
1629
|
+
const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-5b9bfecb"]]), ui = {
|
|
1630
1630
|
i18nOptions: {
|
|
1631
1631
|
messages: {
|
|
1632
1632
|
en: {
|
|
@@ -1669,14 +1669,14 @@ const mi = /* @__PURE__ */ $(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1669
1669
|
},
|
|
1670
1670
|
name: "ExtensionTab",
|
|
1671
1671
|
components: {
|
|
1672
|
-
Sortable:
|
|
1673
|
-
Spinner:
|
|
1674
|
-
CAutocomplete:
|
|
1675
|
-
CDropdown:
|
|
1676
|
-
CDropdownItem:
|
|
1672
|
+
Sortable: qt,
|
|
1673
|
+
Spinner: at,
|
|
1674
|
+
CAutocomplete: Ut,
|
|
1675
|
+
CDropdown: re,
|
|
1676
|
+
CDropdownItem: q
|
|
1677
1677
|
},
|
|
1678
1678
|
emits: ["input"],
|
|
1679
|
-
mixins: [
|
|
1679
|
+
mixins: [oe(["externalReferences", "clients", "articles"])],
|
|
1680
1680
|
data() {
|
|
1681
1681
|
return {
|
|
1682
1682
|
activeCrm: null,
|
|
@@ -1693,7 +1693,7 @@ const mi = /* @__PURE__ */ $(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1693
1693
|
};
|
|
1694
1694
|
},
|
|
1695
1695
|
computed: {
|
|
1696
|
-
...
|
|
1696
|
+
...R({
|
|
1697
1697
|
allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
|
|
1698
1698
|
}),
|
|
1699
1699
|
currExternalReferences() {
|
|
@@ -1739,7 +1739,7 @@ const mi = /* @__PURE__ */ $(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 te.search(this.activeCrm, {
|
|
1743
1743
|
query: e,
|
|
1744
1744
|
type: "deal"
|
|
1745
1745
|
});
|
|
@@ -1773,7 +1773,7 @@ const mi = /* @__PURE__ */ $(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 te.getExternalReferenceDetails(
|
|
1777
1777
|
n,
|
|
1778
1778
|
{ type: s, typeId: i }
|
|
1779
1779
|
);
|
|
@@ -1796,13 +1796,13 @@ const mi = /* @__PURE__ */ $(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 te.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
|
+
...lt(),
|
|
1806
1806
|
...o && { answerMethod: o },
|
|
1807
1807
|
...g
|
|
1808
1808
|
}));
|
|
@@ -1830,42 +1830,42 @@ const mi = /* @__PURE__ */ $(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1830
1830
|
});
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
|
-
},
|
|
1833
|
+
}, mi = { style: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, pi = {
|
|
1834
1834
|
key: 1,
|
|
1835
1835
|
style: { "padding-top": "calc(2 * var(--rem))" },
|
|
1836
1836
|
class: "flex w-full items-center justify-center"
|
|
1837
|
-
},
|
|
1838
|
-
calc(0.5 * var(--rem))` } },
|
|
1837
|
+
}, hi = { style: { padding: `0 calc(0.5 * var(--rem)) calc(2 * var(--rem))
|
|
1838
|
+
calc(0.5 * var(--rem))` } }, fi = { style: { "font-weight": "500", "font-size": "16px" } }, gi = { key: 0 }, yi = { class: "x-hint" }, vi = { class: "flex w-full" }, Ci = ["textContent"], bi = ["textContent"], ki = { class: "text-gray-600" }, wi = {
|
|
1839
1839
|
class: "text-gray-400",
|
|
1840
1840
|
style: { "font-size": "12px" }
|
|
1841
|
-
},
|
|
1841
|
+
}, _i = {
|
|
1842
1842
|
key: 0,
|
|
1843
1843
|
style: { padding: "0.5em", "border-radius": "3px", "background-color": "hsl(205, 100%, 95%)", border: "1px solid hsl(205, 100%, 78%)" }
|
|
1844
|
-
},
|
|
1844
|
+
}, xi = {
|
|
1845
1845
|
key: 0,
|
|
1846
1846
|
style: { opacity: "0.75", "font-size": "13px" }
|
|
1847
|
-
},
|
|
1847
|
+
}, Ti = { key: 2 }, Di = ["textContent"], Si = { style: { "line-height": "1.5" } }, Ii = { style: { "font-weight": "500" } }, $i = {
|
|
1848
1848
|
class: "text-gray-600",
|
|
1849
1849
|
style: { "font-size": "14px" }
|
|
1850
|
-
},
|
|
1851
|
-
calc(0.5 * var(--rem))` } },
|
|
1850
|
+
}, Fi = { key: 0 }, Li = { style: { padding: `0 calc(0.5 * var(--rem)) calc(1 * var(--rem))
|
|
1851
|
+
calc(0.5 * var(--rem))` } }, Vi = { style: { "font-weight": "500" } }, Bi = ["textContent"], Mi = ["onClick"], Pi = ["textContent"], Ai = {
|
|
1852
1852
|
class: "text-gray-600",
|
|
1853
1853
|
style: { "font-size": "12px" }
|
|
1854
|
-
},
|
|
1854
|
+
}, Ei = {
|
|
1855
1855
|
key: 1,
|
|
1856
1856
|
class: "flex w-full text-gray-600",
|
|
1857
1857
|
style: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "5px", "font-size": "12px", "border-radius": "5px", "line-height": "1.35" }
|
|
1858
|
-
},
|
|
1858
|
+
}, zi = ["textContent"], Ri = {
|
|
1859
1859
|
key: 3,
|
|
1860
1860
|
class: "flex w-full flex-col items-center justify-center text-center",
|
|
1861
1861
|
style: { "padding-top": "calc(1 * var(--rem))" }
|
|
1862
|
-
},
|
|
1862
|
+
}, Oi = { class: "text-gray-600" }, Hi = {
|
|
1863
1863
|
class: "text-center",
|
|
1864
1864
|
style: { "padding-top": "calc(1 * var(--rem))" }
|
|
1865
1865
|
};
|
|
1866
|
-
function
|
|
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 =
|
|
1868
|
-
return l(), p("div",
|
|
1866
|
+
function Ui(e, t, n, s, i, o) {
|
|
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 = ie("tooltip");
|
|
1868
|
+
return l(), p("div", mi, [
|
|
1869
1869
|
e.allAuthenticatedCRMs.length > 1 ? (l(), C(h, {
|
|
1870
1870
|
key: 0,
|
|
1871
1871
|
position: "is-bottom-left",
|
|
@@ -1881,7 +1881,7 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1881
1881
|
})
|
|
1882
1882
|
]),
|
|
1883
1883
|
default: u(() => [
|
|
1884
|
-
(l(!0), p(
|
|
1884
|
+
(l(!0), p(I, null, E(e.allAuthenticatedCRMs, (f) => (l(), C(g, {
|
|
1885
1885
|
key: f,
|
|
1886
1886
|
type: i.activeCrm === f ? "primary" : "secondary",
|
|
1887
1887
|
size: "small",
|
|
@@ -1895,17 +1895,17 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1895
1895
|
]),
|
|
1896
1896
|
_: 1
|
|
1897
1897
|
})) : v("", !0),
|
|
1898
|
-
i.isLoading && !i.dealDetails ? (l(), p("div",
|
|
1898
|
+
i.isLoading && !i.dealDetails ? (l(), p("div", pi, [
|
|
1899
1899
|
c(b, {
|
|
1900
1900
|
size: "24",
|
|
1901
1901
|
color: "grey"
|
|
1902
1902
|
})
|
|
1903
|
-
])) : i.activeCrm ? (l(), p(
|
|
1904
|
-
a("div",
|
|
1905
|
-
a("div",
|
|
1906
|
-
i.typeDetails ? (l(), p("div",
|
|
1907
|
-
a("div",
|
|
1908
|
-
a("div",
|
|
1903
|
+
])) : i.activeCrm ? (l(), p(I, { key: 2 }, [
|
|
1904
|
+
a("div", hi, [
|
|
1905
|
+
a("div", fi, d(i.activeCrm.capitalize()), 1),
|
|
1906
|
+
i.typeDetails ? (l(), p("div", gi, [
|
|
1907
|
+
a("div", yi, [
|
|
1908
|
+
a("div", vi, [
|
|
1909
1909
|
a("div", {
|
|
1910
1910
|
textContent: d(
|
|
1911
1911
|
e.$t("referenceTo", {
|
|
@@ -1913,7 +1913,7 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1913
1913
|
type: e.$t(`type.${i.typeDetails.type}`)
|
|
1914
1914
|
})
|
|
1915
1915
|
)
|
|
1916
|
-
}, null, 8,
|
|
1916
|
+
}, null, 8, Ci),
|
|
1917
1917
|
c(r, {
|
|
1918
1918
|
icon: "x",
|
|
1919
1919
|
size: "small",
|
|
@@ -1927,17 +1927,17 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1927
1927
|
a("div", {
|
|
1928
1928
|
class: "x-hint-name",
|
|
1929
1929
|
textContent: d(i.typeDetails.name || "")
|
|
1930
|
-
}, null, 8,
|
|
1930
|
+
}, null, 8, bi)
|
|
1931
1931
|
]),
|
|
1932
1932
|
t[7] || (t[7] = a("div", { class: "divider" }, null, -1))
|
|
1933
1933
|
])) : v("", !0),
|
|
1934
|
-
a("div",
|
|
1934
|
+
a("div", ki, d(e.$t("headerText", { crm: i.activeCrm.capitalize() })), 1),
|
|
1935
1935
|
t[8] || (t[8] = a("div", { style: { height: "2em" } }, null, -1)),
|
|
1936
|
-
o.currentExternalDeal ? (l(), p(
|
|
1937
|
-
a("div",
|
|
1938
|
-
i.dealDetails ? (l(), p("div",
|
|
1936
|
+
o.currentExternalDeal ? (l(), p(I, { key: 1 }, [
|
|
1937
|
+
a("div", wi, d(e.$t("connectedTo", { type: o.dealType })), 1),
|
|
1938
|
+
i.dealDetails ? (l(), p("div", _i, [
|
|
1939
1939
|
a("div", null, [
|
|
1940
|
-
(l(), C(
|
|
1940
|
+
(l(), C(W(i.dealDetails.externalUrl ? "a" : "span"), {
|
|
1941
1941
|
href: i.dealDetails.externalUrl || "#",
|
|
1942
1942
|
target: "_blank",
|
|
1943
1943
|
style: { "font-weight": "600" },
|
|
@@ -1945,7 +1945,7 @@ 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 ? (l(), p("div",
|
|
1948
|
+
i.dealDetails.currency ? (l(), p("div", xi, d(o.priceFormat(i.dealDetails.value, {
|
|
1949
1949
|
showZero: !1,
|
|
1950
1950
|
currency: i.dealDetails.currency
|
|
1951
1951
|
})), 1)) : v("", !0)
|
|
@@ -1977,12 +1977,12 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1977
1977
|
textContent: d(e.$t("suggestClients"))
|
|
1978
1978
|
}, null, 8, ["textContent"])
|
|
1979
1979
|
])
|
|
1980
|
-
], 64)) : (l(), p("div",
|
|
1980
|
+
], 64)) : (l(), p("div", Ti, [
|
|
1981
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,
|
|
1985
|
+
}, null, 8, Di),
|
|
1986
1986
|
c(k, {
|
|
1987
1987
|
ref: "input",
|
|
1988
1988
|
modelValue: i.searchQuery,
|
|
@@ -1999,11 +1999,11 @@ 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
|
-
a("div",
|
|
2003
|
-
a("div",
|
|
2004
|
-
a("div",
|
|
2002
|
+
a("div", Si, [
|
|
2003
|
+
a("div", Ii, d(f.name), 1),
|
|
2004
|
+
a("div", $i, [
|
|
2005
2005
|
_(d(f.externalReference.type.capitalize()) + " " + d(f.externalReference.typeId) + " ", 1),
|
|
2006
|
-
f.value && f.currency ? (l(), p(
|
|
2006
|
+
f.value && f.currency ? (l(), p(I, { key: 0 }, [
|
|
2007
2007
|
_(" · " + d(o.priceFormat(f.value, {
|
|
2008
2008
|
showZero: !1,
|
|
2009
2009
|
currency: f.currency
|
|
@@ -2019,11 +2019,11 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2019
2019
|
}, 8, ["modelValue", "data", "loading", "placeholder"])
|
|
2020
2020
|
]))
|
|
2021
2021
|
]),
|
|
2022
|
-
o.showDealProducts ? (l(), p("div",
|
|
2023
|
-
a("div",
|
|
2024
|
-
a("div",
|
|
2022
|
+
o.showDealProducts ? (l(), p("div", Fi, [
|
|
2023
|
+
a("div", Li, [
|
|
2024
|
+
a("div", Vi, [
|
|
2025
2025
|
_(d(e.$t("productsTitle")) + " ", 1),
|
|
2026
|
-
|
|
2026
|
+
G(c(w, {
|
|
2027
2027
|
type: "info",
|
|
2028
2028
|
size: "13"
|
|
2029
2029
|
}, null, 512), [
|
|
@@ -2041,7 +2041,7 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2041
2041
|
crm: i.activeCrm.capitalize()
|
|
2042
2042
|
})
|
|
2043
2043
|
)
|
|
2044
|
-
}, null, 8,
|
|
2044
|
+
}, null, 8, Bi)
|
|
2045
2045
|
]),
|
|
2046
2046
|
i.dealDetails.articles && i.dealDetails.articles.length ? (l(), C(T, {
|
|
2047
2047
|
key: 0,
|
|
@@ -2065,20 +2065,20 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2065
2065
|
a("div", {
|
|
2066
2066
|
style: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" },
|
|
2067
2067
|
textContent: d(f.name)
|
|
2068
|
-
}, null, 8,
|
|
2069
|
-
a("div",
|
|
2068
|
+
}, null, 8, Pi),
|
|
2069
|
+
a("div", Ai, [
|
|
2070
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 ? (l(), p(
|
|
2074
|
+
f.vat !== null ? (l(), p(I, { key: 0 }, [
|
|
2075
2075
|
_(" · " + d(e._document.$t("vat").capitalize()) + " " + d(f.vat) + "% ", 1)
|
|
2076
2076
|
], 64)) : v("", !0)
|
|
2077
2077
|
])
|
|
2078
|
-
], 8,
|
|
2078
|
+
], 8, Mi)
|
|
2079
2079
|
]),
|
|
2080
2080
|
_: 1
|
|
2081
|
-
}, 8, ["list", "clone"])) : (l(), p("div",
|
|
2081
|
+
}, 8, ["list", "clone"])) : (l(), p("div", Ei, [
|
|
2082
2082
|
c(w, {
|
|
2083
2083
|
type: "info",
|
|
2084
2084
|
size: "13",
|
|
@@ -2086,18 +2086,18 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2086
2086
|
}),
|
|
2087
2087
|
a("div", {
|
|
2088
2088
|
textContent: d(e.$t("noProducts", { type: o.dealType }))
|
|
2089
|
-
}, null, 8,
|
|
2089
|
+
}, null, 8, zi)
|
|
2090
2090
|
]))
|
|
2091
2091
|
])) : v("", !0)
|
|
2092
|
-
], 64)) : (l(), p("div",
|
|
2092
|
+
], 64)) : (l(), p("div", Ri, [
|
|
2093
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
|
-
a("div",
|
|
2100
|
-
a("div",
|
|
2099
|
+
a("div", Oi, d(e.$t("noCrm")), 1),
|
|
2100
|
+
a("div", Hi, [
|
|
2101
2101
|
c(D, {
|
|
2102
2102
|
to: { name: "settings" },
|
|
2103
2103
|
style: { "font-weight": "500" },
|
|
@@ -2112,7 +2112,7 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2112
2112
|
]))
|
|
2113
2113
|
]);
|
|
2114
2114
|
}
|
|
2115
|
-
const
|
|
2115
|
+
const qi = /* @__PURE__ */ F(ui, [["render", Ui], ["__scopeId", "data-v-5c4afae3"]]), Gi = {
|
|
2116
2116
|
name: "FieldsModal",
|
|
2117
2117
|
i18nOptions: {
|
|
2118
2118
|
namespaces: "FieldsModal",
|
|
@@ -2208,7 +2208,7 @@ const Ni = /* @__PURE__ */ $(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
|
|
|
2208
2208
|
},
|
|
2209
2209
|
created() {
|
|
2210
2210
|
if (this.existingFieldId) {
|
|
2211
|
-
const e =
|
|
2211
|
+
const e = M(this.document, `fields.${this.existingFieldId}`);
|
|
2212
2212
|
e && (this.form = { ...this.form, ...e });
|
|
2213
2213
|
}
|
|
2214
2214
|
},
|
|
@@ -2226,25 +2226,25 @@ const Ni = /* @__PURE__ */ $(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
|
|
|
2226
2226
|
},
|
|
2227
2227
|
remove() {
|
|
2228
2228
|
if (!this.existingFieldId) return;
|
|
2229
|
-
const e =
|
|
2229
|
+
const e = Zt(this.document.fields, [this.existingFieldId]);
|
|
2230
2230
|
this.set({ key: "data.fields", value: e }), this.$emit("close");
|
|
2231
2231
|
}
|
|
2232
2232
|
}
|
|
2233
|
-
},
|
|
2233
|
+
}, Ni = {
|
|
2234
2234
|
class: "font-inter flex w-full flex-col items-center bg-white text-center",
|
|
2235
2235
|
style: { padding: "2em", "border-radius": "10px" }
|
|
2236
|
-
},
|
|
2237
|
-
function
|
|
2236
|
+
}, Wi = { style: { "padding-bottom": "2em" } }, ji = { style: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, Zi = { style: { "margin-bottom": "0.25em", opacity: "0.65" } };
|
|
2237
|
+
function Ki(e, t, n, s, i, o) {
|
|
2238
2238
|
const r = m("CInput"), g = m("CField"), h = m("CButton");
|
|
2239
|
-
return l(), p("div",
|
|
2240
|
-
a("div",
|
|
2241
|
-
a("div",
|
|
2242
|
-
a("div",
|
|
2239
|
+
return l(), p("div", Ni, [
|
|
2240
|
+
a("div", Wi, [
|
|
2241
|
+
a("div", ji, d(n.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")), 1),
|
|
2242
|
+
a("div", Zi, 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] = j((...b) => o.submit && o.submit(...b), ["prevent"])),
|
|
2247
|
+
onKeyup: t[3] || (t[3] = rt((...b) => o.submit && o.submit(...b), ["enter"]))
|
|
2248
2248
|
}, [
|
|
2249
2249
|
c(g, {
|
|
2250
2250
|
label: e.$t("label"),
|
|
@@ -2299,7 +2299,7 @@ function Yi(e, t, n, s, i, o) {
|
|
|
2299
2299
|
], 32)
|
|
2300
2300
|
]);
|
|
2301
2301
|
}
|
|
2302
|
-
const
|
|
2302
|
+
const Qi = /* @__PURE__ */ F(Gi, [["render", Ki]]), Yi = {
|
|
2303
2303
|
i18nOptions: {
|
|
2304
2304
|
namespaces: "DocumentFormFields",
|
|
2305
2305
|
messages: {
|
|
@@ -2323,11 +2323,11 @@ const Ji = /* @__PURE__ */ $(Wi, [["render", Yi]]), Xi = {
|
|
|
2323
2323
|
},
|
|
2324
2324
|
name: "DocumentFormFields",
|
|
2325
2325
|
components: {
|
|
2326
|
-
SmartList:
|
|
2327
|
-
CAccordion:
|
|
2326
|
+
SmartList: Wt,
|
|
2327
|
+
CAccordion: Gt,
|
|
2328
2328
|
CField: _e
|
|
2329
2329
|
},
|
|
2330
|
-
mixins: [
|
|
2330
|
+
mixins: [oe()],
|
|
2331
2331
|
props: {
|
|
2332
2332
|
set: {
|
|
2333
2333
|
type: Function,
|
|
@@ -2381,7 +2381,7 @@ const Ji = /* @__PURE__ */ $(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 te.getFields(e);
|
|
2385
2385
|
this.updateValue("data.fields", {
|
|
2386
2386
|
// crmFields added first in order to not override same service values
|
|
2387
2387
|
...s,
|
|
@@ -2401,7 +2401,7 @@ const Ji = /* @__PURE__ */ $(Wi, [["render", Yi]]), Xi = {
|
|
|
2401
2401
|
},
|
|
2402
2402
|
openFieldModal({ existingFieldId: e }) {
|
|
2403
2403
|
this.$modal.show(
|
|
2404
|
-
|
|
2404
|
+
Qi,
|
|
2405
2405
|
{
|
|
2406
2406
|
document: this._document,
|
|
2407
2407
|
set: this.set,
|
|
@@ -2420,7 +2420,7 @@ const Ji = /* @__PURE__ */ $(Wi, [["render", Yi]]), Xi = {
|
|
|
2420
2420
|
);
|
|
2421
2421
|
},
|
|
2422
2422
|
onCopyField(e) {
|
|
2423
|
-
navigator && navigator.clipboard && e && navigator.clipboard.writeText(e).then(() => we("info", this.$t("_common:copyMessage"))).catch((t) =>
|
|
2423
|
+
navigator && navigator.clipboard && e && navigator.clipboard.writeText(e).then(() => we("info", this.$t("_common:copyMessage"))).catch((t) => le(t));
|
|
2424
2424
|
},
|
|
2425
2425
|
filterMethod(e, t) {
|
|
2426
2426
|
return t.filter(
|
|
@@ -2432,37 +2432,37 @@ const Ji = /* @__PURE__ */ $(Wi, [["render", Yi]]), Xi = {
|
|
|
2432
2432
|
e.dataTransfer.setData("text/html", n), e.dataTransfer.setData("text", `{{${t.key}}}`);
|
|
2433
2433
|
}
|
|
2434
2434
|
}
|
|
2435
|
-
},
|
|
2435
|
+
}, Ji = { style: { padding: "1em" } }, Xi = { style: { margin: "15px 0" } }, eo = ["textContent"], to = ["textContent"], no = {
|
|
2436
2436
|
key: 0,
|
|
2437
2437
|
style: { "margin-top": "15px", "padding-top": "15px", "border-top": "1px solid hsl(0, 0%, 88%)" }
|
|
2438
|
-
},
|
|
2438
|
+
}, io = {
|
|
2439
2439
|
class: "field-container",
|
|
2440
2440
|
style: { position: "relative", flex: "1 1 auto" }
|
|
2441
|
-
},
|
|
2441
|
+
}, oo = ["onDragstart", "textContent"], so = { class: "field-actions" }, ao = {
|
|
2442
2442
|
key: 1,
|
|
2443
2443
|
style: { "text-align": "center" }
|
|
2444
|
-
},
|
|
2444
|
+
}, lo = {
|
|
2445
2445
|
key: 1,
|
|
2446
2446
|
style: { "padding-top": "20px" }
|
|
2447
|
-
},
|
|
2447
|
+
}, ro = {
|
|
2448
2448
|
class: "flex w-full justify-end",
|
|
2449
2449
|
style: { "margin-top": "0.5em", "margin-bottom": "0.5em" }
|
|
2450
|
-
},
|
|
2450
|
+
}, co = { class: "list-button" }, uo = ["textContent"], mo = ["textContent"], po = { style: { "padding-bottom": "2em" } }, ho = ["textContent"], fo = {
|
|
2451
2451
|
class: "field-container",
|
|
2452
2452
|
style: { position: "relative", flex: "1 1 auto" }
|
|
2453
|
-
},
|
|
2454
|
-
function
|
|
2453
|
+
}, go = ["onDragstart", "textContent"], yo = { class: "field-actions" };
|
|
2454
|
+
function vo(e, t, n, s, i, o) {
|
|
2455
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",
|
|
2457
|
-
a("div",
|
|
2456
|
+
return l(), p("div", Ji, [
|
|
2457
|
+
a("div", Xi, [
|
|
2458
2458
|
a("div", {
|
|
2459
2459
|
style: { "font-size": "16px", "font-weight": "600" },
|
|
2460
2460
|
textContent: d(e.$t("title"))
|
|
2461
|
-
}, null, 8,
|
|
2461
|
+
}, null, 8, eo),
|
|
2462
2462
|
a("div", {
|
|
2463
2463
|
style: { color: "hsl(0, 0%, 35%)" },
|
|
2464
2464
|
textContent: d(e.$t("description"))
|
|
2465
|
-
}, null, 8,
|
|
2465
|
+
}, null, 8, to)
|
|
2466
2466
|
]),
|
|
2467
2467
|
c(r, {
|
|
2468
2468
|
modelValue: i.query,
|
|
@@ -2471,7 +2471,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2471
2471
|
filled: "",
|
|
2472
2472
|
size: "small"
|
|
2473
2473
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2474
|
-
i.query ? (l(), p("div",
|
|
2474
|
+
i.query ? (l(), p("div", no, [
|
|
2475
2475
|
c(b, {
|
|
2476
2476
|
items: o.options,
|
|
2477
2477
|
"filter-method": o.filterMethod,
|
|
@@ -2479,11 +2479,11 @@ function bo(e, t, n, s, i, o) {
|
|
|
2479
2479
|
}, {
|
|
2480
2480
|
default: u(({ items: T }) => [
|
|
2481
2481
|
a("div", null, [
|
|
2482
|
-
T.length ? (l(!0), p(
|
|
2482
|
+
T.length ? (l(!0), p(I, { key: 0 }, E(T, (D, y) => (l(), p("div", {
|
|
2483
2483
|
key: y,
|
|
2484
2484
|
class: "field-parent flex w-full items-center"
|
|
2485
2485
|
}, [
|
|
2486
|
-
a("div",
|
|
2486
|
+
a("div", io, [
|
|
2487
2487
|
c(g, {
|
|
2488
2488
|
label: " ",
|
|
2489
2489
|
"label-position": "inside",
|
|
@@ -2495,7 +2495,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2495
2495
|
draggable: !0,
|
|
2496
2496
|
onDragstart: (f) => o.onDragStart(f, D),
|
|
2497
2497
|
textContent: d(D.label)
|
|
2498
|
-
}, null, 40,
|
|
2498
|
+
}, null, 40, oo),
|
|
2499
2499
|
c(r, {
|
|
2500
2500
|
"model-value": D.value,
|
|
2501
2501
|
disabled: D.inputDisabled,
|
|
@@ -2510,7 +2510,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2510
2510
|
]),
|
|
2511
2511
|
_: 2
|
|
2512
2512
|
}, 1024),
|
|
2513
|
-
a("div",
|
|
2513
|
+
a("div", so, [
|
|
2514
2514
|
!D.inputDisabled && !D.virtual ? (l(), C(h, {
|
|
2515
2515
|
key: 0,
|
|
2516
2516
|
icon: "edit",
|
|
@@ -2530,13 +2530,13 @@ function bo(e, t, n, s, i, o) {
|
|
|
2530
2530
|
}, null, 8, ["onClick"])
|
|
2531
2531
|
])
|
|
2532
2532
|
])
|
|
2533
|
-
]))), 128)) : (l(), p("div",
|
|
2533
|
+
]))), 128)) : (l(), p("div", ao, d(e.$t("_common:noResults")), 1))
|
|
2534
2534
|
])
|
|
2535
2535
|
]),
|
|
2536
2536
|
_: 1
|
|
2537
2537
|
}, 8, ["items", "filter-method", "query"])
|
|
2538
|
-
])) : (l(), p("div",
|
|
2539
|
-
a("div",
|
|
2538
|
+
])) : (l(), p("div", lo, [
|
|
2539
|
+
a("div", ro, [
|
|
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
|
-
(l(!0), p(
|
|
2549
|
+
(l(!0), p(I, null, E([
|
|
2550
2550
|
{
|
|
2551
2551
|
label: e.$t("usedFields"),
|
|
2552
2552
|
defaultOpen: !0,
|
|
@@ -2570,30 +2570,30 @@ function bo(e, t, n, s, i, o) {
|
|
|
2570
2570
|
style: { "border-top": "1px solid hsl(0, 0%, 88%)" }
|
|
2571
2571
|
}, {
|
|
2572
2572
|
trigger: u(({ expanded: y }) => [
|
|
2573
|
-
a("div",
|
|
2573
|
+
a("div", co, [
|
|
2574
2574
|
a("span", null, [
|
|
2575
2575
|
a("span", {
|
|
2576
2576
|
textContent: d(T.label)
|
|
2577
|
-
}, null, 8,
|
|
2577
|
+
}, null, 8, uo),
|
|
2578
2578
|
a("span", {
|
|
2579
2579
|
style: { opacity: "0.45", "padding-left": "0.5em" },
|
|
2580
2580
|
textContent: d(T.items.length)
|
|
2581
|
-
}, null, 8,
|
|
2581
|
+
}, null, 8, mo)
|
|
2582
2582
|
]),
|
|
2583
2583
|
c(k, {
|
|
2584
|
-
style:
|
|
2584
|
+
style: z([{ 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
|
-
a("div",
|
|
2592
|
-
T.items.length ? (l(!0), p(
|
|
2591
|
+
a("div", po, [
|
|
2592
|
+
T.items.length ? (l(!0), p(I, { key: 1 }, E(T.items, (y, f) => (l(), p("div", {
|
|
2593
2593
|
key: f,
|
|
2594
2594
|
class: "field-parent flex w-full items-center"
|
|
2595
2595
|
}, [
|
|
2596
|
-
a("div",
|
|
2596
|
+
a("div", fo, [
|
|
2597
2597
|
c(g, {
|
|
2598
2598
|
label: " ",
|
|
2599
2599
|
"label-position": "inside",
|
|
@@ -2605,7 +2605,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2605
2605
|
draggable: !0,
|
|
2606
2606
|
onDragstart: (x) => o.onDragStart(x, y),
|
|
2607
2607
|
textContent: d(y.label)
|
|
2608
|
-
}, null, 40,
|
|
2608
|
+
}, null, 40, go),
|
|
2609
2609
|
c(r, {
|
|
2610
2610
|
"model-value": y.value,
|
|
2611
2611
|
disabled: y.inputDisabled,
|
|
@@ -2613,14 +2613,14 @@ 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 $;
|
|
2617
|
+
return y.onInput((($ = x == null ? void 0 : x.target) == null ? void 0 : $.value) || "");
|
|
2618
2618
|
}
|
|
2619
2619
|
}, null, 8, ["model-value", "disabled", "onBlur"])
|
|
2620
2620
|
]),
|
|
2621
2621
|
_: 2
|
|
2622
2622
|
}, 1024),
|
|
2623
|
-
a("div",
|
|
2623
|
+
a("div", yo, [
|
|
2624
2624
|
!y.inputDisabled && !y.virtual ? (l(), C(h, {
|
|
2625
2625
|
key: 0,
|
|
2626
2626
|
icon: "edit",
|
|
@@ -2644,7 +2644,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
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"))
|
|
2647
|
-
}, null, 8,
|
|
2647
|
+
}, null, 8, ho))
|
|
2648
2648
|
])
|
|
2649
2649
|
]),
|
|
2650
2650
|
_: 2
|
|
@@ -2652,7 +2652,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2652
2652
|
]))
|
|
2653
2653
|
]);
|
|
2654
2654
|
}
|
|
2655
|
-
const
|
|
2655
|
+
const Co = /* @__PURE__ */ F(Yi, [["render", vo], ["__scopeId", "data-v-454d81b5"]]), bo = {
|
|
2656
2656
|
name: "MenuBlockConvertPopover",
|
|
2657
2657
|
emits: ["close", "convert"],
|
|
2658
2658
|
props: {
|
|
@@ -2685,18 +2685,18 @@ const ko = /* @__PURE__ */ $(Xi, [["render", bo], ["__scopeId", "data-v-454d81b5
|
|
|
2685
2685
|
}
|
|
2686
2686
|
}
|
|
2687
2687
|
}
|
|
2688
|
-
},
|
|
2688
|
+
}, ko = {
|
|
2689
2689
|
ref: "popover",
|
|
2690
2690
|
class: "absolute z-10 w-52 -translate-y-1/2 rounded-lg bg-white p-4 text-sm shadow-xl"
|
|
2691
|
-
},
|
|
2692
|
-
function
|
|
2691
|
+
}, wo = ["innerHTML"];
|
|
2692
|
+
function _o(e, t, n, s, i, o) {
|
|
2693
2693
|
const r = m("CButton");
|
|
2694
2694
|
return l(), p("div", null, [
|
|
2695
2695
|
a("div", {
|
|
2696
2696
|
class: "fixed inset-0 z-10",
|
|
2697
|
-
onClick: t[0] || (t[0] =
|
|
2697
|
+
onClick: t[0] || (t[0] = j((g) => e.$emit("close"), ["self"]))
|
|
2698
2698
|
}),
|
|
2699
|
-
c(
|
|
2699
|
+
c(ne, {
|
|
2700
2700
|
appear: "",
|
|
2701
2701
|
mode: "out-in",
|
|
2702
2702
|
"enter-active-class": "transition-all duration-100 ease-out",
|
|
@@ -2707,11 +2707,11 @@ function To(e, t, n, s, i, o) {
|
|
|
2707
2707
|
"leave-to-class": "opacity-0"
|
|
2708
2708
|
}, {
|
|
2709
2709
|
default: u(() => [
|
|
2710
|
-
a("div",
|
|
2710
|
+
a("div", ko, [
|
|
2711
2711
|
a("div", {
|
|
2712
2712
|
class: "pb-4",
|
|
2713
2713
|
innerHTML: e.$t("text")
|
|
2714
|
-
}, null, 8,
|
|
2714
|
+
}, null, 8, wo),
|
|
2715
2715
|
c(r, {
|
|
2716
2716
|
type: "secondary",
|
|
2717
2717
|
size: "small",
|
|
@@ -2729,7 +2729,7 @@ function To(e, t, n, s, i, o) {
|
|
|
2729
2729
|
})
|
|
2730
2730
|
]);
|
|
2731
2731
|
}
|
|
2732
|
-
const
|
|
2732
|
+
const xo = /* @__PURE__ */ F(bo, [["render", _o]]), To = {
|
|
2733
2733
|
name: "MenuBlocks",
|
|
2734
2734
|
i18nOptions: {
|
|
2735
2735
|
namespaces: "menuBlocks",
|
|
@@ -2799,14 +2799,14 @@ const Do = /* @__PURE__ */ $(wo, [["render", To]]), So = {
|
|
|
2799
2799
|
}
|
|
2800
2800
|
},
|
|
2801
2801
|
components: {
|
|
2802
|
-
Simplebar:
|
|
2803
|
-
DragList:
|
|
2804
|
-
DragItem:
|
|
2805
|
-
IsPremiumPreStep:
|
|
2802
|
+
Simplebar: J,
|
|
2803
|
+
DragList: ze,
|
|
2804
|
+
DragItem: Ee,
|
|
2805
|
+
IsPremiumPreStep: X,
|
|
2806
2806
|
ProBadge: We,
|
|
2807
|
-
MenuBlockConvertPopover:
|
|
2807
|
+
MenuBlockConvertPopover: xo
|
|
2808
2808
|
},
|
|
2809
|
-
mixins: [
|
|
2809
|
+
mixins: [Q],
|
|
2810
2810
|
inject: {
|
|
2811
2811
|
viewSettings: {
|
|
2812
2812
|
default: () => ({ isPublicForm: !1 })
|
|
@@ -3000,7 +3000,7 @@ const Do = /* @__PURE__ */ $(wo, [["render", To]]), So = {
|
|
|
3000
3000
|
};
|
|
3001
3001
|
},
|
|
3002
3002
|
computed: {
|
|
3003
|
-
...
|
|
3003
|
+
...R({
|
|
3004
3004
|
allAuthenticatedCRMs: "settings/allAuthenticatedCRMs",
|
|
3005
3005
|
feature: "application/feature"
|
|
3006
3006
|
}),
|
|
@@ -3135,7 +3135,7 @@ const Do = /* @__PURE__ */ $(wo, [["render", To]]), So = {
|
|
|
3135
3135
|
);
|
|
3136
3136
|
},
|
|
3137
3137
|
activeSubMenuKey() {
|
|
3138
|
-
return
|
|
3138
|
+
return M(this.activeSubMenu, "[0].key") || null;
|
|
3139
3139
|
}
|
|
3140
3140
|
// section key is added to each element in the menu
|
|
3141
3141
|
},
|
|
@@ -3170,7 +3170,7 @@ const Do = /* @__PURE__ */ $(wo, [["render", To]]), So = {
|
|
|
3170
3170
|
var i, o;
|
|
3171
3171
|
if (this.mq === "sm") return;
|
|
3172
3172
|
const { tooltips: e } = this, t = (o = (i = this.$el).getRootNode) == null ? void 0 : o.call(i), s = (t == null ? void 0 : t.toString()) === "[object ShadowRoot]" ? t : document.body;
|
|
3173
|
-
this.tippyInstances =
|
|
3173
|
+
this.tippyInstances = Ot(this.$el, {
|
|
3174
3174
|
target: "[data-tooltip-key]",
|
|
3175
3175
|
allowHTML: !0,
|
|
3176
3176
|
duration: [150, 0],
|
|
@@ -3214,7 +3214,7 @@ const Do = /* @__PURE__ */ $(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 !!M(this._document, "_doc.template.views.read.nodes", []).find((n) => n.itemId.startsWith(e));
|
|
3218
3218
|
},
|
|
3219
3219
|
getGhostParent() {
|
|
3220
3220
|
var n, s;
|
|
@@ -3237,17 +3237,17 @@ const Do = /* @__PURE__ */ $(wo, [["render", To]]), So = {
|
|
|
3237
3237
|
};
|
|
3238
3238
|
}
|
|
3239
3239
|
}
|
|
3240
|
-
},
|
|
3240
|
+
}, Do = { class: "menu-container" }, So = {
|
|
3241
3241
|
key: 0,
|
|
3242
3242
|
style: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(1 * var(--rem))" }
|
|
3243
|
-
},
|
|
3243
|
+
}, Io = ["onMouseoverPassive"], $o = {
|
|
3244
3244
|
class: "flex items-center",
|
|
3245
3245
|
style: { width: "230px" }
|
|
3246
|
-
},
|
|
3246
|
+
}, Fo = {
|
|
3247
3247
|
class: "flex items-center",
|
|
3248
3248
|
style: { width: "initial", flex: "1 1 auto" }
|
|
3249
|
-
},
|
|
3250
|
-
function
|
|
3249
|
+
}, Lo = ["innerHTML"], Vo = { class: "option-title" }, Bo = { class: "relative" }, Mo = ["onClick", "innerHTML"];
|
|
3250
|
+
function Po(e, t, n, s, i, o) {
|
|
3251
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
3252
|
return l(), p("div", {
|
|
3253
3253
|
onMouseleavePassive: t[4] || (t[4] = (...y) => o.onMouseleaveDrawer && o.onMouseleaveDrawer(...y))
|
|
@@ -3260,15 +3260,15 @@ function Eo(e, t, n, s, i, o) {
|
|
|
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
|
-
a("div",
|
|
3264
|
-
(l(!0), p(
|
|
3263
|
+
a("div", Do, [
|
|
3264
|
+
(l(!0), p(I, null, E([
|
|
3265
3265
|
{ data: o.primaryBlocks },
|
|
3266
3266
|
{ data: o.secondaryBlocks }
|
|
3267
3267
|
], (f, x) => (l(), p("div", { key: x }, [
|
|
3268
|
-
x > 0 ? (l(), p("div",
|
|
3268
|
+
x > 0 ? (l(), p("div", So)) : v("", !0),
|
|
3269
3269
|
c(w, {
|
|
3270
3270
|
group: { name: "blocks", pull: "clone", put: !1 },
|
|
3271
|
-
"get-child-payload": (
|
|
3271
|
+
"get-child-payload": ($) => s.getBlockPayload(o.getSectionKey({ data: f.data, index: $ })),
|
|
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
|
-
(l(!0), p(
|
|
3284
|
-
key:
|
|
3285
|
-
class:
|
|
3283
|
+
(l(!0), p(I, null, E(f.data, ($) => (l(), C(k, {
|
|
3284
|
+
key: $.key,
|
|
3285
|
+
class: V({ "drag-item": o.canDrag })
|
|
3286
3286
|
}, {
|
|
3287
3287
|
default: u(() => [
|
|
3288
3288
|
a("div", be(
|
|
3289
3289
|
{ ref_for: !0 },
|
|
3290
|
-
|
|
3290
|
+
$.hasTooltip ? { "data-tooltip-key": $.key } : null,
|
|
3291
3291
|
{
|
|
3292
3292
|
class: {
|
|
3293
|
-
"no-drag":
|
|
3293
|
+
"no-drag": $.disabled || $.locked || !n.canUseBlocks
|
|
3294
3294
|
},
|
|
3295
|
-
onMouseoverPassive: (
|
|
3296
|
-
onMouseleavePassive: t[1] || (t[1] = (
|
|
3295
|
+
onMouseoverPassive: (S) => i.subMenuToShow = !$.disabled && o.canDrag && $.subMenu || null,
|
|
3296
|
+
onMouseleavePassive: t[1] || (t[1] = (S) => i.subMenuToShow = null)
|
|
3297
3297
|
}
|
|
3298
3298
|
), [
|
|
3299
3299
|
c(b, {
|
|
3300
3300
|
ref_for: !0,
|
|
3301
3301
|
ref: "blockItem",
|
|
3302
|
-
disabled:
|
|
3303
|
-
class:
|
|
3304
|
-
"sub-menu-active":
|
|
3302
|
+
disabled: $.disabled,
|
|
3303
|
+
class: V([{
|
|
3304
|
+
"sub-menu-active": $.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: (S) => o.onUseBlock({ block: $, openUpgradeModal: y })
|
|
3310
3310
|
}, {
|
|
3311
3311
|
default: u(() => [
|
|
3312
|
-
a("div",
|
|
3313
|
-
a("div",
|
|
3312
|
+
a("div", $o, [
|
|
3313
|
+
a("div", Fo, [
|
|
3314
3314
|
a("div", {
|
|
3315
3315
|
class: "option-image",
|
|
3316
|
-
innerHTML:
|
|
3317
|
-
}, null, 8,
|
|
3318
|
-
a("div",
|
|
3316
|
+
innerHTML: $.icon
|
|
3317
|
+
}, null, 8, Lo),
|
|
3318
|
+
a("div", Vo, d(e.$t(`blocks.${$.key}`)), 1)
|
|
3319
3319
|
]),
|
|
3320
|
-
|
|
3320
|
+
$.locked ? (l(), C(g, { key: 0 })) : !n.fixed && $.subMenu ? (l(), C(h, {
|
|
3321
3321
|
key: 1,
|
|
3322
3322
|
type: "chevron-right",
|
|
3323
3323
|
size: "14",
|
|
@@ -3327,7 +3327,7 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3327
3327
|
]),
|
|
3328
3328
|
_: 2
|
|
3329
3329
|
}, 1032, ["disabled", "class", "onClick"])
|
|
3330
|
-
], 16,
|
|
3330
|
+
], 16, Io)
|
|
3331
3331
|
]),
|
|
3332
3332
|
_: 2
|
|
3333
3333
|
}, 1032, ["class"]))), 128))
|
|
@@ -3335,11 +3335,11 @@ 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
|
+
A(e.$slots, "footer", {}, void 0, !0)
|
|
3339
3339
|
]),
|
|
3340
|
-
c(
|
|
3340
|
+
c(ne, { name: "slide-right" }, {
|
|
3341
3341
|
default: u(() => [
|
|
3342
|
-
|
|
3342
|
+
G(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)
|
|
@@ -3361,17 +3361,17 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3361
3361
|
behaviour: "copy"
|
|
3362
3362
|
}, {
|
|
3363
3363
|
default: u(() => [
|
|
3364
|
-
(l(!0), p(
|
|
3364
|
+
(l(!0), p(I, null, E(i.activeSubMenu, (f, x) => (l(), C(k, {
|
|
3365
3365
|
key: f.key + x,
|
|
3366
|
-
class:
|
|
3366
|
+
class: V(["px-1.5", { "drag-item": !f.locked && n.canUseBlocks }])
|
|
3367
3367
|
}, {
|
|
3368
3368
|
default: u(() => [
|
|
3369
|
-
a("div",
|
|
3369
|
+
a("div", Bo, [
|
|
3370
3370
|
a("div", {
|
|
3371
3371
|
class: "drag-item-preview",
|
|
3372
|
-
onClick: (
|
|
3372
|
+
onClick: ($) => o.onUseBlock({ block: f, openUpgradeModal: y }),
|
|
3373
3373
|
innerHTML: f.previewUrl
|
|
3374
|
-
}, null, 8,
|
|
3374
|
+
}, null, 8, Mo),
|
|
3375
3375
|
f.locked ? (l(), C(g, {
|
|
3376
3376
|
key: 0,
|
|
3377
3377
|
class: "absolute bottom-2 right-4"
|
|
@@ -3397,7 +3397,7 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3397
3397
|
})
|
|
3398
3398
|
], 32);
|
|
3399
3399
|
}
|
|
3400
|
-
const
|
|
3400
|
+
const Ao = /* @__PURE__ */ F(To, [["render", Po], ["__scopeId", "data-v-babdf4c0"]]), Eo = {
|
|
3401
3401
|
name: "DocumentFormMenu",
|
|
3402
3402
|
i18nOptions: {
|
|
3403
3403
|
namespaces: "documentFormMenu",
|
|
@@ -3413,15 +3413,15 @@ const zo = /* @__PURE__ */ $(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
|
|
|
3413
3413
|
}
|
|
3414
3414
|
},
|
|
3415
3415
|
components: {
|
|
3416
|
-
Design:
|
|
3417
|
-
Fields:
|
|
3418
|
-
ExtensionTab:
|
|
3419
|
-
DocumentGeneralSettings:
|
|
3420
|
-
DocumentGuide:
|
|
3421
|
-
() => import("./index-
|
|
3416
|
+
Design: si,
|
|
3417
|
+
Fields: Co,
|
|
3418
|
+
ExtensionTab: qi,
|
|
3419
|
+
DocumentGeneralSettings: ci,
|
|
3420
|
+
DocumentGuide: ct(
|
|
3421
|
+
() => import("./index-Co_PpOtI.js")
|
|
3422
3422
|
),
|
|
3423
|
-
MenuBlocks:
|
|
3424
|
-
Simplebar:
|
|
3423
|
+
MenuBlocks: Ao,
|
|
3424
|
+
Simplebar: J
|
|
3425
3425
|
},
|
|
3426
3426
|
emits: ["close"],
|
|
3427
3427
|
props: {
|
|
@@ -3462,7 +3462,7 @@ const zo = /* @__PURE__ */ $(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
|
|
|
3462
3462
|
};
|
|
3463
3463
|
},
|
|
3464
3464
|
computed: {
|
|
3465
|
-
...
|
|
3465
|
+
...R({
|
|
3466
3466
|
allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
|
|
3467
3467
|
}),
|
|
3468
3468
|
extensionTabType() {
|
|
@@ -3482,21 +3482,21 @@ const zo = /* @__PURE__ */ $(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
|
|
|
3482
3482
|
this.showGuide = !0, this.showGuideNotification = !1, Ie.setItem("hideFormGuideNotification", !0);
|
|
3483
3483
|
}
|
|
3484
3484
|
}
|
|
3485
|
-
},
|
|
3485
|
+
}, zo = {
|
|
3486
3486
|
key: 0,
|
|
3487
3487
|
class: "tab-list"
|
|
3488
|
-
},
|
|
3488
|
+
}, Ro = ["textContent"], Oo = ["textContent"], Ho = ["textContent"], Uo = { style: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "flex-end", "align-items": "flex-start", padding: "calc(1 * var(--rem))" } }, qo = {
|
|
3489
3489
|
key: 0,
|
|
3490
3490
|
class: "circle-pulse"
|
|
3491
|
-
},
|
|
3491
|
+
}, Go = {
|
|
3492
3492
|
key: 2,
|
|
3493
3493
|
class: "menu-container"
|
|
3494
3494
|
};
|
|
3495
|
-
function
|
|
3495
|
+
function No(e, t, n, s, i, o) {
|
|
3496
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
3497
|
return l(), p("div", null, [
|
|
3498
3498
|
a("div", {
|
|
3499
|
-
style:
|
|
3499
|
+
style: z([{ 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
3502
|
n.fixed ? (l(), p("div", {
|
|
@@ -3505,31 +3505,31 @@ function jo(e, t, n, s, i, o) {
|
|
|
3505
3505
|
onClick: t[0] || (t[0] = (f) => e.$emit("close"))
|
|
3506
3506
|
})) : v("", !0),
|
|
3507
3507
|
a("div", {
|
|
3508
|
-
style:
|
|
3508
|
+
style: z([{ 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) : (l(), p("div",
|
|
3510
|
+
n.isLegacyTemplate ? v("", !0) : (l(), p("div", zo, [
|
|
3511
3511
|
a("div", {
|
|
3512
|
-
class:
|
|
3512
|
+
class: V([{ "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
|
-
}, null, 10,
|
|
3515
|
+
}, null, 10, Ro),
|
|
3516
3516
|
a("div", {
|
|
3517
|
-
class:
|
|
3517
|
+
class: V([{ "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
|
-
}, null, 10,
|
|
3520
|
+
}, null, 10, Oo),
|
|
3521
3521
|
a("div", {
|
|
3522
|
-
class:
|
|
3522
|
+
class: V([{ "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
|
-
}, null, 10,
|
|
3525
|
+
}, null, 10, Ho),
|
|
3526
3526
|
o.extensionTabType ? (l(), p("div", {
|
|
3527
3527
|
key: 0,
|
|
3528
|
-
class:
|
|
3528
|
+
class: V([{ "is-active": i.tab === "extension" }, "tab-item"]),
|
|
3529
3529
|
onClick: t[4] || (t[4] = (f) => i.tab = "extension")
|
|
3530
3530
|
}, [
|
|
3531
3531
|
a("div", {
|
|
3532
|
-
style:
|
|
3532
|
+
style: z([{ 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
|
},
|
|
@@ -3546,7 +3546,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3546
3546
|
], 4)
|
|
3547
3547
|
], 2)) : v("", !0),
|
|
3548
3548
|
a("div", {
|
|
3549
|
-
class:
|
|
3549
|
+
class: V([{ "is-active": i.tab === "generalSettings" }, "tab-item ml-[2px]"]),
|
|
3550
3550
|
onClick: t[5] || (t[5] = (f) => i.tab = "generalSettings")
|
|
3551
3551
|
}, [
|
|
3552
3552
|
c(r, {
|
|
@@ -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
|
-
a("div",
|
|
3569
|
+
a("div", Uo, [
|
|
3570
3570
|
c(g, {
|
|
3571
3571
|
"icon-left": "help",
|
|
3572
3572
|
type: "none",
|
|
@@ -3577,14 +3577,14 @@ function jo(e, t, n, s, i, o) {
|
|
|
3577
3577
|
}, {
|
|
3578
3578
|
default: u(() => [
|
|
3579
3579
|
_(d(e.$t("guideButton")) + " ", 1),
|
|
3580
|
-
i.showGuideNotification ? (l(), p("div",
|
|
3580
|
+
i.showGuideNotification ? (l(), p("div", qo)) : 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"])) : (l(), p("div",
|
|
3587
|
+
}, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (l(), p("div", Go, [
|
|
3588
3588
|
c(D, { class: "h-full w-full" }, {
|
|
3589
3589
|
default: u(() => [
|
|
3590
3590
|
i.tab === "design" ? (l(), C(b, {
|
|
@@ -3628,7 +3628,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3628
3628
|
rounding: "data.formSettings.rounding"
|
|
3629
3629
|
},
|
|
3630
3630
|
offset: n.fixed ? 0 : n.width,
|
|
3631
|
-
class:
|
|
3631
|
+
class: V({ "!top-0 rounded-sm": n.isLegacyTemplate }),
|
|
3632
3632
|
onInput: t[8] || (t[8] = ({ key: f, value: x }) => n.set({ key: f, value: x }))
|
|
3633
3633
|
}, null, 8, ["_document", "offset", "class"])) : v("", !0)
|
|
3634
3634
|
]),
|
|
@@ -3643,12 +3643,12 @@ function jo(e, t, n, s, i, o) {
|
|
|
3643
3643
|
], 4)
|
|
3644
3644
|
]);
|
|
3645
3645
|
}
|
|
3646
|
-
const
|
|
3646
|
+
const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__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
3650
|
!s && !Array.isArray(s) || s.forEach((i) => Qe(i, t));
|
|
3651
|
-
},
|
|
3651
|
+
}, jo = {
|
|
3652
3652
|
i18nOptions: {
|
|
3653
3653
|
namespaces: "DocumentFormContainer",
|
|
3654
3654
|
messages: {
|
|
@@ -3664,22 +3664,21 @@ const Zo = /* @__PURE__ */ $(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3664
3664
|
},
|
|
3665
3665
|
name: "DocumentFormContainer",
|
|
3666
3666
|
components: {
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
IsPremium: te
|
|
3667
|
+
DragList: ze,
|
|
3668
|
+
DragItem: Ee,
|
|
3669
|
+
DynamicChapter: zt,
|
|
3670
|
+
DocumentFormMenu: Wo,
|
|
3671
|
+
DynamicBlock: zn,
|
|
3672
|
+
DocumentFormViewRadio: In,
|
|
3673
|
+
DocumentFormNav: xn,
|
|
3674
|
+
DocumentDrawer: gn,
|
|
3675
|
+
DocumentStyleContainer: Et,
|
|
3676
|
+
simplebar: J,
|
|
3677
|
+
LogoBanner: Nn,
|
|
3678
|
+
IsPremium: ee
|
|
3680
3679
|
},
|
|
3681
3680
|
emits: ["update:view"],
|
|
3682
|
-
mixins: [
|
|
3681
|
+
mixins: [Q],
|
|
3683
3682
|
props: {
|
|
3684
3683
|
_document: {
|
|
3685
3684
|
type: Object,
|
|
@@ -3717,7 +3716,7 @@ const Zo = /* @__PURE__ */ $(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3717
3716
|
},
|
|
3718
3717
|
data() {
|
|
3719
3718
|
return {
|
|
3720
|
-
drawerState:
|
|
3719
|
+
drawerState: N,
|
|
3721
3720
|
isDragging: !1,
|
|
3722
3721
|
previewDevice: "desktop",
|
|
3723
3722
|
sidebarWidth: 270
|
|
@@ -3725,25 +3724,25 @@ const Zo = /* @__PURE__ */ $(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3725
3724
|
},
|
|
3726
3725
|
computed: {
|
|
3727
3726
|
docTemplate() {
|
|
3728
|
-
return
|
|
3727
|
+
return M(this._document, "template", null);
|
|
3729
3728
|
},
|
|
3730
3729
|
isTemplateEditable() {
|
|
3731
|
-
return
|
|
3730
|
+
return M(this.docTemplate, "views.read.isEditable", !1);
|
|
3732
3731
|
},
|
|
3733
3732
|
canMove() {
|
|
3734
3733
|
return this.isTemplateEditable && this.isEditView;
|
|
3735
3734
|
},
|
|
3736
3735
|
readLayout() {
|
|
3737
|
-
return
|
|
3736
|
+
return M(this.docTemplate, "views.read.nodes", []);
|
|
3738
3737
|
},
|
|
3739
3738
|
nestedReadLayout() {
|
|
3740
3739
|
return this._document.getReadLayout({ showHiddenNodes: this.isEditView });
|
|
3741
3740
|
},
|
|
3742
3741
|
currency() {
|
|
3743
|
-
return
|
|
3742
|
+
return M(this._document, "currency");
|
|
3744
3743
|
},
|
|
3745
3744
|
externalReferences() {
|
|
3746
|
-
return
|
|
3745
|
+
return M(this._document, "externalReferences") || [];
|
|
3747
3746
|
},
|
|
3748
3747
|
isEditView() {
|
|
3749
3748
|
return this.view === "edit";
|
|
@@ -3764,13 +3763,13 @@ const Zo = /* @__PURE__ */ $(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3764
3763
|
isEditView: {
|
|
3765
3764
|
immediate: !0,
|
|
3766
3765
|
handler(e, t) {
|
|
3767
|
-
|
|
3766
|
+
N.isFixed = e ? this.isFixedSidebar : !0, e && !N.isFixed ? t === void 0 ? N.setLeft(!0) : N.useSavedLeftState() : N.showLeft = !1;
|
|
3768
3767
|
}
|
|
3769
3768
|
},
|
|
3770
3769
|
isFixedSidebar: {
|
|
3771
3770
|
immediate: !0,
|
|
3772
3771
|
handler(e) {
|
|
3773
|
-
|
|
3772
|
+
N.isFixed = e, N.showLeft = !e;
|
|
3774
3773
|
}
|
|
3775
3774
|
},
|
|
3776
3775
|
currency(e) {
|
|
@@ -3793,7 +3792,7 @@ const Zo = /* @__PURE__ */ $(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3793
3792
|
await Promise.all(
|
|
3794
3793
|
(e || []).map(async ({ service: t, type: n, typeId: s }) => {
|
|
3795
3794
|
if (n && s && t && this.$store.getters["settings/isAuthenticatedCRM"](t)) {
|
|
3796
|
-
const { data: i } = await
|
|
3795
|
+
const { data: i } = await te.getFields(
|
|
3797
3796
|
t,
|
|
3798
3797
|
{ type: n, typeId: s, populated: !0 }
|
|
3799
3798
|
);
|
|
@@ -3808,7 +3807,7 @@ const Zo = /* @__PURE__ */ $(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3808
3807
|
},
|
|
3809
3808
|
methods: {
|
|
3810
3809
|
onAddBlockMount(e, t) {
|
|
3811
|
-
t &&
|
|
3810
|
+
t && Ht(e) && this.$nextTick(() => Qt(t, { offset: 100 }));
|
|
3812
3811
|
},
|
|
3813
3812
|
onBlockToggleVisible(e, t) {
|
|
3814
3813
|
const s = [...this.readLayout].findIndex(
|
|
@@ -3854,23 +3853,23 @@ const Zo = /* @__PURE__ */ $(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3854
3853
|
Array.isArray(t.packages) && t.packages.forEach((s) => {
|
|
3855
3854
|
this.setFormValue({
|
|
3856
3855
|
key: "articles",
|
|
3857
|
-
value:
|
|
3856
|
+
value: M(this._document, "_doc.articles", []).filter(
|
|
3858
3857
|
({ packageId: i }) => i !== s.packageId
|
|
3859
3858
|
)
|
|
3860
3859
|
});
|
|
3861
3860
|
});
|
|
3862
3861
|
const n = Object.assign(
|
|
3863
3862
|
{},
|
|
3864
|
-
|
|
3863
|
+
M(this._document, "_doc.data.packageGroups")
|
|
3865
3864
|
);
|
|
3866
|
-
delete n[e], this.setFormValue({ key: "data.packageGroups", value: n }), Object.keys(
|
|
3865
|
+
delete n[e], this.setFormValue({ key: "data.packageGroups", value: n }), Object.keys(M(this._document, "_doc.data.packageGroups", {})).length || this.removeFormValue(
|
|
3867
3866
|
"template.validationSchema.properties.data.properties.packageGroups"
|
|
3868
3867
|
);
|
|
3869
3868
|
},
|
|
3870
3869
|
onBlockListChange(e, { removedIndex: t, addedIndex: n, payload: s }) {
|
|
3871
3870
|
if (t !== null && n !== null) {
|
|
3872
3871
|
if (t === n) return;
|
|
3873
|
-
const i =
|
|
3872
|
+
const i = ut(
|
|
3874
3873
|
this.nestedReadLayout,
|
|
3875
3874
|
t,
|
|
3876
3875
|
n
|
|
@@ -3886,7 +3885,7 @@ const Zo = /* @__PURE__ */ $(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3886
3885
|
contentData: g
|
|
3887
3886
|
});
|
|
3888
3887
|
r({ validation: b, data: k });
|
|
3889
|
-
const w =
|
|
3888
|
+
const w = mt({ tree: h }), T = [
|
|
3890
3889
|
...this.nestedReadLayout.slice(0, n),
|
|
3891
3890
|
...w,
|
|
3892
3891
|
...this.nestedReadLayout.slice(n)
|
|
@@ -3901,26 +3900,26 @@ const Zo = /* @__PURE__ */ $(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3901
3900
|
return e && e.behaviour === "move";
|
|
3902
3901
|
}
|
|
3903
3902
|
}
|
|
3904
|
-
},
|
|
3903
|
+
}, Zo = { class: "h-screen overflow-auto" }, Ko = { class: "relative flex w-full items-center space-x-4" }, Qo = { class: "relative" }, Yo = {
|
|
3905
3904
|
key: 0,
|
|
3906
3905
|
style: { left: "calc(100% + calc(1.25 * var(--rem)))" },
|
|
3907
3906
|
class: "absolute inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 backdrop-blur-lg backdrop-saturate-[180%]"
|
|
3908
|
-
},
|
|
3907
|
+
}, Jo = ["onClick"], Xo = {
|
|
3909
3908
|
key: 0,
|
|
3910
3909
|
class: "drag-drop-empty-list is-placeholder text-gray-400"
|
|
3911
|
-
},
|
|
3912
|
-
function
|
|
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("
|
|
3914
|
-
return l(), p("div",
|
|
3910
|
+
}, es = ["innerHTML"];
|
|
3911
|
+
function ts(e, t, n, s, i, o) {
|
|
3912
|
+
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("portal-target"), $ = m("DocumentDrawer");
|
|
3913
|
+
return l(), p("div", Zo, [
|
|
3915
3914
|
a("div", {
|
|
3916
|
-
class:
|
|
3915
|
+
class: V([{
|
|
3917
3916
|
"is-edit-view": o.isEditView,
|
|
3918
3917
|
"is-empty-list": !o.nestedReadLayout.length
|
|
3919
3918
|
}, "relative flex min-h-screen flex-row bg-gray-200"])
|
|
3920
3919
|
}, [
|
|
3921
3920
|
c(b, { close: n.close }, {
|
|
3922
3921
|
left: u(() => [
|
|
3923
|
-
a("div",
|
|
3922
|
+
a("div", Ko, [
|
|
3924
3923
|
n.close ? (l(), C(r, {
|
|
3925
3924
|
key: 0,
|
|
3926
3925
|
"icon-props": { size: 20 },
|
|
@@ -3949,47 +3948,47 @@ function is(e, t, n, s, i, o) {
|
|
|
3949
3948
|
class: "max-sm:hidden",
|
|
3950
3949
|
thinner: "",
|
|
3951
3950
|
icon: "sidebar",
|
|
3952
|
-
onClick:
|
|
3951
|
+
onClick: j(i.drawerState.toggleLeft, ["stop"])
|
|
3953
3952
|
}, null, 8, ["onClick"]),
|
|
3954
|
-
|
|
3953
|
+
A(e.$slots, "nav-left", {}, void 0, !0)
|
|
3955
3954
|
])
|
|
3956
3955
|
]),
|
|
3957
3956
|
center: u(() => [
|
|
3958
|
-
a("div",
|
|
3959
|
-
|
|
3957
|
+
a("div", Qo, [
|
|
3958
|
+
G(c(g, {
|
|
3960
3959
|
small: e.mq === "sm",
|
|
3961
3960
|
"model-value": n.view,
|
|
3962
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3961
|
+
"onUpdate:modelValue": t[0] || (t[0] = (S) => e.$emit("update:view", S))
|
|
3963
3962
|
}, null, 8, ["small", "model-value"]), [
|
|
3964
3963
|
[ve, o.nestedReadLayout.length]
|
|
3965
3964
|
]),
|
|
3966
|
-
!o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (l(), p("div",
|
|
3967
|
-
(l(), p(
|
|
3968
|
-
key:
|
|
3969
|
-
style:
|
|
3970
|
-
i.previewDevice ===
|
|
3965
|
+
!o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (l(), p("div", Yo, [
|
|
3966
|
+
(l(), p(I, null, E(["desktop", "tablet", "mobile"], (S) => a("div", {
|
|
3967
|
+
key: S,
|
|
3968
|
+
style: z(
|
|
3969
|
+
i.previewDevice === S && {
|
|
3971
3970
|
boxShadow: "0 1px 1px rgba(0, 0, 0, 0.2)",
|
|
3972
3971
|
backgroundColor: "hsl(0, 0%, 100%)",
|
|
3973
3972
|
color: "hsl(0, 0%, 7%)"
|
|
3974
3973
|
}
|
|
3975
3974
|
),
|
|
3976
3975
|
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: (
|
|
3976
|
+
onClick: (U) => i.previewDevice = S
|
|
3978
3977
|
}, [
|
|
3979
3978
|
c(h, {
|
|
3980
|
-
type:
|
|
3979
|
+
type: S,
|
|
3981
3980
|
size: "20"
|
|
3982
3981
|
}, null, 8, ["type"])
|
|
3983
|
-
], 12,
|
|
3982
|
+
], 12, Jo)), 64))
|
|
3984
3983
|
])) : v("", !0)
|
|
3985
3984
|
])
|
|
3986
3985
|
]),
|
|
3987
3986
|
right: u(() => [
|
|
3988
|
-
|
|
3987
|
+
A(e.$slots, "nav-right", {}, void 0, !0)
|
|
3989
3988
|
]),
|
|
3990
3989
|
_: 3
|
|
3991
3990
|
}, 8, ["close"]),
|
|
3992
|
-
|
|
3991
|
+
G(c(k, {
|
|
3993
3992
|
state: n._document,
|
|
3994
3993
|
set: n.setFormValue,
|
|
3995
3994
|
"remove-value": n.removeFormValue,
|
|
@@ -3998,23 +3997,23 @@ function is(e, t, n, s, i, o) {
|
|
|
3998
3997
|
"can-use-blocks": o.isTemplateEditable,
|
|
3999
3998
|
"is-legacy-template": o.isLegacyTemplate,
|
|
4000
3999
|
width: i.sidebarWidth,
|
|
4001
|
-
onClose: t[1] || (t[1] = (
|
|
4000
|
+
onClose: t[1] || (t[1] = (S) => i.drawerState.showLeft = !1)
|
|
4002
4001
|
}, null, 8, ["state", "set", "remove-value", "template", "fixed", "can-use-blocks", "is-legacy-template", "width"]), [
|
|
4003
4002
|
[ve, i.drawerState.showLeft]
|
|
4004
4003
|
]),
|
|
4005
4004
|
a("div", {
|
|
4006
4005
|
ref: "scroll-body",
|
|
4007
|
-
class:
|
|
4006
|
+
class: V([{
|
|
4008
4007
|
"device-offset": o.isEditView
|
|
4009
4008
|
}, "doc-scroll-container flex w-full justify-center"]),
|
|
4010
|
-
style:
|
|
4009
|
+
style: z(
|
|
4011
4010
|
i.drawerState.showLeft && !i.drawerState.isFixed && {
|
|
4012
4011
|
marginLeft: `${i.sidebarWidth}px`
|
|
4013
4012
|
}
|
|
4014
4013
|
)
|
|
4015
4014
|
}, [
|
|
4016
4015
|
a("div", {
|
|
4017
|
-
class:
|
|
4016
|
+
class: V([[
|
|
4018
4017
|
{
|
|
4019
4018
|
"is-device-edit": o.isEditView,
|
|
4020
4019
|
"is-empty": !o.nestedReadLayout.length
|
|
@@ -4023,119 +4022,114 @@ function is(e, t, n, s, i, o) {
|
|
|
4023
4022
|
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
4023
|
], "list-container"])
|
|
4025
4024
|
}, [
|
|
4026
|
-
!o.nestedReadLayout.length && !o.isFixedSidebar ? (l(), p("div",
|
|
4027
|
-
t[8] || (t[8] =
|
|
4025
|
+
!o.nestedReadLayout.length && !o.isFixedSidebar ? (l(), p("div", Xo, [
|
|
4026
|
+
t[8] || (t[8] = pt('<div style="position:relative;" data-v-29e700ee><div class="drag-drop-illustration-block" data-v-29e700ee><div data-v-29e700ee></div><div data-v-29e700ee></div></div><svg class="drag-drop-illustration" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" data-v-29e700ee><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-29e700ee></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-29e700ee></path></svg></div>', 1)),
|
|
4028
4027
|
a("div", {
|
|
4029
4028
|
class: "text-center",
|
|
4030
4029
|
style: { "max-width": "22ch" },
|
|
4031
4030
|
innerHTML: e.$t("emptyBlockPlaceholderLarge")
|
|
4032
|
-
}, null, 8,
|
|
4031
|
+
}, null, 8, es)
|
|
4033
4032
|
])) : v("", !0),
|
|
4034
|
-
(l(), C(
|
|
4035
|
-
default: u(() =>
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4033
|
+
(l(), C(W(o.isEditView ? "div" : "simplebar"), { class: "h-full w-full" }, {
|
|
4034
|
+
default: u(() => {
|
|
4035
|
+
var S, U;
|
|
4036
|
+
return [
|
|
4037
|
+
c(f, {
|
|
4038
|
+
class: "relative h-full w-full",
|
|
4039
|
+
"input-style": ((U = (S = n._document) == null ? void 0 : S.data) == null ? void 0 : U.css) || null
|
|
4040
|
+
}, {
|
|
4041
|
+
default: u(() => [
|
|
4042
|
+
o.nestedReadLayout ? (l(), C(W(o.dndEnabled ? "DragList" : "div"), {
|
|
4043
|
+
key: 0,
|
|
4044
|
+
handle: ".NO-SELECTOR",
|
|
4045
|
+
"drop-placeholder": { className: "drag-drop-placeholder" },
|
|
4046
|
+
"should-animate-drop": o.shouldAnimateDrop,
|
|
4047
|
+
group: "blocks",
|
|
4048
|
+
class: "drag-list",
|
|
4049
|
+
"ghost-class": "drag-drop-ghost",
|
|
4050
|
+
"drag-class": "is-dragged",
|
|
4051
|
+
"group-name": "document-blocks",
|
|
4052
|
+
"non-drag-area-selector": ".no-drag",
|
|
4053
|
+
"drag-handle-selector": ".drag-item",
|
|
4054
|
+
onDragStart: t[3] || (t[3] = (B) => i.isDragging = !0),
|
|
4055
|
+
onDragEnd: t[4] || (t[4] = (B) => i.isDragging = !1),
|
|
4056
|
+
onDrop: t[5] || (t[5] = (B) => o.onBlockListChange("blocks-list", B))
|
|
4043
4057
|
}, {
|
|
4044
4058
|
default: u(() => [
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
"group-name": "document-blocks",
|
|
4055
|
-
"non-drag-area-selector": ".no-drag",
|
|
4056
|
-
"drag-handle-selector": ".drag-item",
|
|
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))
|
|
4059
|
+
(l(!0), p(I, null, E(n._document.getReadLayout({
|
|
4060
|
+
showHiddenNodes: o.isEditView
|
|
4061
|
+
}), (B, se) => (l(), C(W(o.dndEnabled ? "DragItem" : "div"), {
|
|
4062
|
+
key: B.nodeId,
|
|
4063
|
+
class: V([
|
|
4064
|
+
{
|
|
4065
|
+
"drag-item": o.dndEnabled
|
|
4066
|
+
}
|
|
4067
|
+
])
|
|
4060
4068
|
}, {
|
|
4061
4069
|
default: u(() => [
|
|
4062
|
-
(
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4070
|
+
c(T, {
|
|
4071
|
+
ref_for: !0,
|
|
4072
|
+
ref: B.nodeId,
|
|
4073
|
+
"is-dragging": i.isDragging,
|
|
4074
|
+
"is-edit-view": o.isEditView,
|
|
4075
|
+
"can-move": o.canMove,
|
|
4076
|
+
"block-type": B.itemType,
|
|
4077
|
+
"is-visible": B.isVisible,
|
|
4078
|
+
"show-edit-button": !!B.showEditButton,
|
|
4079
|
+
onRemove: (L) => o.onBlockRemove(B, se),
|
|
4080
|
+
onMove: (L) => o.onBlockMove(L, se),
|
|
4081
|
+
onEdit: t[2] || (t[2] = (L) => i.drawerState.openSection = L),
|
|
4082
|
+
onToggleVisible: (L) => o.onBlockToggleVisible(B, L)
|
|
4071
4083
|
}, {
|
|
4072
4084
|
default: u(() => [
|
|
4073
|
-
c(
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
},
|
|
4087
|
-
default: u(() => [
|
|
4088
|
-
c(w, {
|
|
4089
|
-
"component-name": V.componentName,
|
|
4090
|
-
"component-props": {
|
|
4091
|
-
...V.props,
|
|
4092
|
-
_document: n._document,
|
|
4093
|
-
_value: V.value,
|
|
4094
|
-
_nodeId: V.nodeId
|
|
4095
|
-
},
|
|
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
|
-
}, null, 8, ["component-name", "component-props", "children", "is-visible", "on-input", "on-remove", "on-mount"])
|
|
4102
|
-
]),
|
|
4103
|
-
_: 2
|
|
4104
|
-
}, 1032, ["is-dragging", "is-edit-view", "can-move", "block-type", "is-visible", "show-edit-button", "onRemove", "onMove", "onToggleVisible"])
|
|
4085
|
+
c(w, {
|
|
4086
|
+
"component-name": B.componentName,
|
|
4087
|
+
"component-props": {
|
|
4088
|
+
...B.props,
|
|
4089
|
+
_document: n._document,
|
|
4090
|
+
_value: B.value,
|
|
4091
|
+
_nodeId: B.nodeId
|
|
4092
|
+
},
|
|
4093
|
+
children: B.children,
|
|
4094
|
+
"is-visible": B.isVisible,
|
|
4095
|
+
"on-input": ({ key: L, value: ce, options: Xe }) => n.setFormValue({ key: L, value: ce, options: Xe }),
|
|
4096
|
+
"on-remove": ({ key: L }) => n.removeFormValue(L),
|
|
4097
|
+
"on-mount": (L) => o.onAddBlockMount(B.nodeId, L)
|
|
4098
|
+
}, null, 8, ["component-name", "component-props", "children", "is-visible", "on-input", "on-remove", "on-mount"])
|
|
4105
4099
|
]),
|
|
4106
4100
|
_: 2
|
|
4107
|
-
}, 1032, ["
|
|
4108
|
-
]),
|
|
4109
|
-
_: 1
|
|
4110
|
-
}, 40, ["should-animate-drop"])) : v("", !0),
|
|
4111
|
-
n.canShowBanner ? (l(), C(y, { key: 1 }, {
|
|
4112
|
-
default: u(({ isProLike: V }) => [
|
|
4113
|
-
!o.isEditView && !V ? (l(), C(D, {
|
|
4114
|
-
key: 0,
|
|
4115
|
-
position: "sticky"
|
|
4116
|
-
})) : v("", !0)
|
|
4101
|
+
}, 1032, ["is-dragging", "is-edit-view", "can-move", "block-type", "is-visible", "show-edit-button", "onRemove", "onMove", "onToggleVisible"])
|
|
4117
4102
|
]),
|
|
4118
|
-
_:
|
|
4103
|
+
_: 2
|
|
4104
|
+
}, 1032, ["class"]))), 128))
|
|
4105
|
+
]),
|
|
4106
|
+
_: 1
|
|
4107
|
+
}, 40, ["should-animate-drop"])) : v("", !0),
|
|
4108
|
+
n.canShowBanner ? (l(), C(y, { key: 1 }, {
|
|
4109
|
+
default: u(({ isProLike: B }) => [
|
|
4110
|
+
!o.isEditView && !B ? (l(), C(D, {
|
|
4111
|
+
key: 0,
|
|
4112
|
+
position: "sticky"
|
|
4119
4113
|
})) : v("", !0)
|
|
4120
4114
|
]),
|
|
4121
4115
|
_: 1
|
|
4122
|
-
}
|
|
4123
|
-
]
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4116
|
+
})) : v("", !0)
|
|
4117
|
+
]),
|
|
4118
|
+
_: 1
|
|
4119
|
+
}, 8, ["input-style"])
|
|
4120
|
+
];
|
|
4121
|
+
}),
|
|
4128
4122
|
_: 1
|
|
4129
4123
|
}))
|
|
4130
4124
|
], 2)
|
|
4131
4125
|
], 6),
|
|
4132
|
-
(l(), C(
|
|
4126
|
+
(l(), C($, {
|
|
4133
4127
|
id: "settingsDrawer",
|
|
4134
4128
|
key: "settingsDrawer",
|
|
4135
4129
|
open: !!i.drawerState.openSection,
|
|
4136
4130
|
fixed: !0,
|
|
4137
4131
|
position: "right",
|
|
4138
|
-
"onUpdate:open": t[7] || (t[7] = (
|
|
4132
|
+
"onUpdate:open": t[7] || (t[7] = (S) => i.drawerState.openSection = null)
|
|
4139
4133
|
}, {
|
|
4140
4134
|
default: u(() => [
|
|
4141
4135
|
c(r, {
|
|
@@ -4146,16 +4140,16 @@ function is(e, t, n, s, i, o) {
|
|
|
4146
4140
|
type: "none",
|
|
4147
4141
|
pattern: "tertiary",
|
|
4148
4142
|
class: "absolute right-2 top-2",
|
|
4149
|
-
onClick: t[6] || (t[6] = (
|
|
4143
|
+
onClick: t[6] || (t[6] = (S) => i.drawerState.openSection = null)
|
|
4150
4144
|
}),
|
|
4151
|
-
c(
|
|
4145
|
+
c(x, { name: "drawer-content" })
|
|
4152
4146
|
]),
|
|
4153
4147
|
_: 1
|
|
4154
4148
|
}, 8, ["open"]))
|
|
4155
4149
|
], 2)
|
|
4156
4150
|
]);
|
|
4157
4151
|
}
|
|
4158
|
-
const
|
|
4152
|
+
const ns = /* @__PURE__ */ F(jo, [["render", ts], ["__scopeId", "data-v-29e700ee"]]), is = {
|
|
4159
4153
|
name: "DocumentSend",
|
|
4160
4154
|
i18nOptions: {
|
|
4161
4155
|
namespaces: "documentSend",
|
|
@@ -4186,20 +4180,20 @@ const os = /* @__PURE__ */ $(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4186
4180
|
},
|
|
4187
4181
|
components: {
|
|
4188
4182
|
Drawer: Ze,
|
|
4189
|
-
SendForm:
|
|
4190
|
-
CCheckbox:
|
|
4191
|
-
CIcon:
|
|
4192
|
-
CButton:
|
|
4183
|
+
SendForm: Yt,
|
|
4184
|
+
CCheckbox: Oe,
|
|
4185
|
+
CIcon: ht,
|
|
4186
|
+
CButton: Re,
|
|
4193
4187
|
ProBadge: We,
|
|
4194
|
-
IsPremium:
|
|
4195
|
-
IsPremiumPreStep:
|
|
4188
|
+
IsPremium: ee,
|
|
4189
|
+
IsPremiumPreStep: X
|
|
4196
4190
|
},
|
|
4197
4191
|
mixins: [
|
|
4198
|
-
|
|
4192
|
+
oe([], {
|
|
4199
4193
|
useEmit: !1,
|
|
4200
4194
|
setFnName: "setFormValue"
|
|
4201
4195
|
}),
|
|
4202
|
-
|
|
4196
|
+
Q
|
|
4203
4197
|
],
|
|
4204
4198
|
props: {
|
|
4205
4199
|
setFormValue: {
|
|
@@ -4238,7 +4232,7 @@ const os = /* @__PURE__ */ $(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4238
4232
|
};
|
|
4239
4233
|
},
|
|
4240
4234
|
computed: {
|
|
4241
|
-
...
|
|
4235
|
+
...R({
|
|
4242
4236
|
accountConfigName: "application/accountConfigName"
|
|
4243
4237
|
}),
|
|
4244
4238
|
isOffertaCxt() {
|
|
@@ -4254,10 +4248,10 @@ const os = /* @__PURE__ */ $(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4254
4248
|
return !!(this.viewSettings && this.viewSettings.isPublicForm);
|
|
4255
4249
|
},
|
|
4256
4250
|
hasAnswerBlock() {
|
|
4257
|
-
return (
|
|
4251
|
+
return (M(this._document, "template.views.read.nodes") || []).some((t) => t.itemType === "answer");
|
|
4258
4252
|
},
|
|
4259
4253
|
tooManyClients() {
|
|
4260
|
-
return (
|
|
4254
|
+
return (M(this._document, "clients") || []).length > 15;
|
|
4261
4255
|
}
|
|
4262
4256
|
},
|
|
4263
4257
|
watch: {
|
|
@@ -4271,8 +4265,8 @@ const os = /* @__PURE__ */ $(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4271
4265
|
!this.isPublicForm && this.$fab && (this.$fab.show = !0);
|
|
4272
4266
|
},
|
|
4273
4267
|
methods: {
|
|
4274
|
-
...
|
|
4275
|
-
createTemplate:
|
|
4268
|
+
...Z({
|
|
4269
|
+
createTemplate: P.DO_CREATE_TEMPLATE
|
|
4276
4270
|
}),
|
|
4277
4271
|
open() {
|
|
4278
4272
|
this.isOpen = !0;
|
|
@@ -4281,7 +4275,7 @@ const os = /* @__PURE__ */ $(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4281
4275
|
if (!this._document) return;
|
|
4282
4276
|
const e = {
|
|
4283
4277
|
...this._document.copyTemplateDocDefault(),
|
|
4284
|
-
name:
|
|
4278
|
+
name: M(this._document, "name") || this.$t("_common:untitled"),
|
|
4285
4279
|
_id: void 0,
|
|
4286
4280
|
id: void 0,
|
|
4287
4281
|
isVisible: !0
|
|
@@ -4299,19 +4293,19 @@ const os = /* @__PURE__ */ $(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
|
|
|
4299
4293
|
}));
|
|
4300
4294
|
}
|
|
4301
4295
|
}
|
|
4302
|
-
},
|
|
4296
|
+
}, os = {
|
|
4303
4297
|
key: "1",
|
|
4304
4298
|
class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
|
|
4305
|
-
},
|
|
4299
|
+
}, ss = { class: "pl-2" }, as = ["textContent"], ls = { class: "text-sm text-red-600 text-opacity-80" }, rs = {
|
|
4306
4300
|
key: "2",
|
|
4307
4301
|
class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
|
|
4308
|
-
},
|
|
4302
|
+
}, ds = { class: "pl-2" }, cs = ["textContent"], us = { class: "mb-4 text-sm text-red-600 text-opacity-80" }, ms = {
|
|
4309
4303
|
for: "checkbox-save-as-temp",
|
|
4310
4304
|
class: "inline-flex cursor-pointer select-none items-center py-2 text-[12px] font-[500] text-gray-600"
|
|
4311
|
-
},
|
|
4312
|
-
function
|
|
4313
|
-
const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), b = m("ProBadge"), k = m("IsPremiumPreStep"), w = m("IsPremium"), T = m("SendForm"), D =
|
|
4314
|
-
return e.mq !== "sm" || i.isOpen ? (l(), C(
|
|
4305
|
+
}, ps = ["onClick"], hs = { style: { "padding-left": "0.5em" } };
|
|
4306
|
+
function fs(e, t, n, s, i, o) {
|
|
4307
|
+
const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), b = m("ProBadge"), k = m("IsPremiumPreStep"), w = m("IsPremium"), T = m("SendForm"), D = ie("tooltip");
|
|
4308
|
+
return e.mq !== "sm" || i.isOpen ? (l(), C(W(e.mq === "sm" ? "div" : "Drawer"), {
|
|
4315
4309
|
key: 0,
|
|
4316
4310
|
modelValue: i.isOpen,
|
|
4317
4311
|
"onUpdate:modelValue": t[3] || (t[3] = (y) => i.isOpen = y),
|
|
@@ -4319,7 +4313,7 @@ function ys(e, t, n, s, i, o) {
|
|
|
4319
4313
|
}, {
|
|
4320
4314
|
default: u(() => [
|
|
4321
4315
|
a("div", {
|
|
4322
|
-
class:
|
|
4316
|
+
class: V([{
|
|
4323
4317
|
"is-fullscreen": e.mq === "sm"
|
|
4324
4318
|
}, "send-modal font-inter"])
|
|
4325
4319
|
}, [
|
|
@@ -4353,7 +4347,7 @@ function ys(e, t, n, s, i, o) {
|
|
|
4353
4347
|
}, 8, ["onClick"])) : v("", !0)
|
|
4354
4348
|
]),
|
|
4355
4349
|
[o.saveTemplateSlot]: u(() => [
|
|
4356
|
-
a("label",
|
|
4350
|
+
a("label", ms, [
|
|
4357
4351
|
c(w, null, {
|
|
4358
4352
|
default: u(({ canCreateTemplate: y }) => [
|
|
4359
4353
|
c(k, { feature: "saveDocTemplate" }, {
|
|
@@ -4373,9 +4367,9 @@ function ys(e, t, n, s, i, o) {
|
|
|
4373
4367
|
size: "small",
|
|
4374
4368
|
type: "secondary"
|
|
4375
4369
|
}, null, 8, ["modelValue"]),
|
|
4376
|
-
a("div",
|
|
4370
|
+
a("div", hs, [
|
|
4377
4371
|
_(d(e.$t("saveDocAsTemplate")) + " ", 1),
|
|
4378
|
-
|
|
4372
|
+
G(c(g, {
|
|
4379
4373
|
type: "info",
|
|
4380
4374
|
size: "15"
|
|
4381
4375
|
}, null, 512), [
|
|
@@ -4386,7 +4380,7 @@ function ys(e, t, n, s, i, o) {
|
|
|
4386
4380
|
key: 0,
|
|
4387
4381
|
class: "ml-2 self-center"
|
|
4388
4382
|
}))
|
|
4389
|
-
], 8,
|
|
4383
|
+
], 8, ps)
|
|
4390
4384
|
]),
|
|
4391
4385
|
_: 2
|
|
4392
4386
|
}, 1024)
|
|
@@ -4396,7 +4390,7 @@ function ys(e, t, n, s, i, o) {
|
|
|
4396
4390
|
])
|
|
4397
4391
|
]),
|
|
4398
4392
|
default: u(() => [
|
|
4399
|
-
o.tooManyClients ? (l(), p("div",
|
|
4393
|
+
o.tooManyClients ? (l(), p("div", os, [
|
|
4400
4394
|
a("div", null, [
|
|
4401
4395
|
c(g, {
|
|
4402
4396
|
type: "error",
|
|
@@ -4405,16 +4399,16 @@ function ys(e, t, n, s, i, o) {
|
|
|
4405
4399
|
})
|
|
4406
4400
|
]),
|
|
4407
4401
|
a("div", null, [
|
|
4408
|
-
a("div",
|
|
4402
|
+
a("div", ss, [
|
|
4409
4403
|
a("div", {
|
|
4410
4404
|
class: "text-sm font-semibold text-red-600",
|
|
4411
4405
|
textContent: d(e.$t("tooManyClientsTitle"))
|
|
4412
|
-
}, null, 8,
|
|
4413
|
-
a("div",
|
|
4406
|
+
}, null, 8, as),
|
|
4407
|
+
a("div", ls, d(e.$t("tooManyClientsText")), 1)
|
|
4414
4408
|
])
|
|
4415
4409
|
])
|
|
4416
4410
|
])) : v("", !0),
|
|
4417
|
-
o.hasAnswerBlock ? v("", !0) : (l(), p("div",
|
|
4411
|
+
o.hasAnswerBlock ? v("", !0) : (l(), p("div", rs, [
|
|
4418
4412
|
a("div", null, [
|
|
4419
4413
|
c(g, {
|
|
4420
4414
|
type: "error",
|
|
@@ -4423,12 +4417,12 @@ function ys(e, t, n, s, i, o) {
|
|
|
4423
4417
|
})
|
|
4424
4418
|
]),
|
|
4425
4419
|
a("div", null, [
|
|
4426
|
-
a("div",
|
|
4420
|
+
a("div", ds, [
|
|
4427
4421
|
a("div", {
|
|
4428
4422
|
class: "text-sm font-semibold text-red-600",
|
|
4429
4423
|
textContent: d(e.$t("signMissingTitle"))
|
|
4430
|
-
}, null, 8,
|
|
4431
|
-
a("div",
|
|
4424
|
+
}, null, 8, cs),
|
|
4425
|
+
a("div", us, d(e.$t("signMissingText")), 1)
|
|
4432
4426
|
]),
|
|
4433
4427
|
c(r, {
|
|
4434
4428
|
type: "secondary",
|
|
@@ -4451,7 +4445,7 @@ function ys(e, t, n, s, i, o) {
|
|
|
4451
4445
|
_: 1
|
|
4452
4446
|
}, 8, ["modelValue"])) : v("", !0);
|
|
4453
4447
|
}
|
|
4454
|
-
const
|
|
4448
|
+
const gs = /* @__PURE__ */ F(is, [["render", fs], ["__scopeId", "data-v-fde11d9e"]]), ys = {
|
|
4455
4449
|
i18nOptions: {
|
|
4456
4450
|
namespaces: "DocumentTemplateFormModal",
|
|
4457
4451
|
messages: {
|
|
@@ -4481,8 +4475,8 @@ const vs = /* @__PURE__ */ $(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
|
|
|
4481
4475
|
},
|
|
4482
4476
|
name: "DocumentTemplateFormModal",
|
|
4483
4477
|
components: {
|
|
4484
|
-
CCallout:
|
|
4485
|
-
CCheckbox:
|
|
4478
|
+
CCallout: Xt,
|
|
4479
|
+
CCheckbox: Oe,
|
|
4486
4480
|
CField: _e
|
|
4487
4481
|
},
|
|
4488
4482
|
emits: ["close"],
|
|
@@ -4520,12 +4514,12 @@ const vs = /* @__PURE__ */ $(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
|
|
|
4520
4514
|
validations() {
|
|
4521
4515
|
return {
|
|
4522
4516
|
name: {
|
|
4523
|
-
required:
|
|
4517
|
+
required: jt(!this.updateExistingDocTemplate)
|
|
4524
4518
|
}
|
|
4525
4519
|
};
|
|
4526
4520
|
},
|
|
4527
4521
|
computed: {
|
|
4528
|
-
...
|
|
4522
|
+
...R({
|
|
4529
4523
|
isPosting: "templates/isPosting",
|
|
4530
4524
|
templateById: "templates/byId",
|
|
4531
4525
|
docById: "documents2/byId",
|
|
@@ -4553,13 +4547,13 @@ const vs = /* @__PURE__ */ $(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
|
|
|
4553
4547
|
this.$refs.input && this.$refs.input.focus();
|
|
4554
4548
|
},
|
|
4555
4549
|
methods: {
|
|
4556
|
-
...
|
|
4557
|
-
loadTemplate:
|
|
4558
|
-
saveTemplate:
|
|
4559
|
-
updateSettings:
|
|
4550
|
+
...Z({
|
|
4551
|
+
loadTemplate: P.DO_LOAD_TEMPLATE,
|
|
4552
|
+
saveTemplate: P.SAVE_TEMPLATE_FORM,
|
|
4553
|
+
updateSettings: P.UPDATE_SETTINGS
|
|
4560
4554
|
}),
|
|
4561
4555
|
async onSave() {
|
|
4562
|
-
if (!this.document && !this.template && (
|
|
4556
|
+
if (!this.document && !this.template && (ft.error('Missing prop "document" or "template"'), this.$emit("close")), this.v$.$invalid) return;
|
|
4563
4557
|
let e;
|
|
4564
4558
|
this.document ? (e = this.getNewTemplate(), this.updateExistingDocTemplate && this.canUpdateExistingDocTemplate && this.document.template.id && (e.id = this.document.template.id, delete e.name)) : this.template && (e = this.getExistingTemplateBody()), await this.saveTemplate({ body: e, callback: this.onSaveTemplate }), this.$emit("close");
|
|
4565
4559
|
},
|
|
@@ -4609,11 +4603,11 @@ const vs = /* @__PURE__ */ $(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
|
|
|
4609
4603
|
this.canUpdateExistingDocTemplate = !1;
|
|
4610
4604
|
}
|
|
4611
4605
|
}
|
|
4612
|
-
},
|
|
4613
|
-
function
|
|
4606
|
+
}, vs = { class: "t-root font-inter" }, Cs = { style: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, bs = { key: 1 }, ks = { class: "text-gray-600" }, ws = { key: 2 }, _s = { class: "text-gray-600" };
|
|
4607
|
+
function xs(e, t, n, s, i, o) {
|
|
4614
4608
|
const r = m("CCallout"), g = m("CInput"), h = m("CField"), b = m("CCheckbox"), k = m("CButton");
|
|
4615
|
-
return l(), p("div",
|
|
4616
|
-
a("div",
|
|
4609
|
+
return l(), p("div", vs, [
|
|
4610
|
+
a("div", Cs, d(n.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })), 1),
|
|
4617
4611
|
a("div", null, [
|
|
4618
4612
|
n.template ? v("", !0) : (l(), C(r, { key: 0 }, {
|
|
4619
4613
|
default: u(() => [
|
|
@@ -4641,7 +4635,7 @@ function Ds(e, t, n, s, i, o) {
|
|
|
4641
4635
|
]),
|
|
4642
4636
|
_: 1
|
|
4643
4637
|
}, 8, ["vuelidate", "vuelidate-messages", "label"]),
|
|
4644
|
-
n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (l(), p("div",
|
|
4638
|
+
n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (l(), p("div", bs, [
|
|
4645
4639
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4646
4640
|
default: u(() => [
|
|
4647
4641
|
c(b, {
|
|
@@ -4651,7 +4645,7 @@ function Ds(e, t, n, s, i, o) {
|
|
|
4651
4645
|
size: "normal"
|
|
4652
4646
|
}, {
|
|
4653
4647
|
default: u(() => [
|
|
4654
|
-
a("div",
|
|
4648
|
+
a("div", ks, d(e.$t("updateExisting")), 1)
|
|
4655
4649
|
]),
|
|
4656
4650
|
_: 1
|
|
4657
4651
|
}, 8, ["modelValue"])
|
|
@@ -4659,7 +4653,7 @@ function Ds(e, t, n, s, i, o) {
|
|
|
4659
4653
|
_: 1
|
|
4660
4654
|
})
|
|
4661
4655
|
])) : v("", !0),
|
|
4662
|
-
n.document && n.document.clients.length && n.showKeepClientsOption ? (l(), p("div",
|
|
4656
|
+
n.document && n.document.clients.length && n.showKeepClientsOption ? (l(), p("div", ws, [
|
|
4663
4657
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4664
4658
|
default: u(() => [
|
|
4665
4659
|
c(b, {
|
|
@@ -4669,7 +4663,7 @@ function Ds(e, t, n, s, i, o) {
|
|
|
4669
4663
|
size: "normal"
|
|
4670
4664
|
}, {
|
|
4671
4665
|
default: u(() => [
|
|
4672
|
-
a("div",
|
|
4666
|
+
a("div", _s, d(e.$t("keepClients")), 1)
|
|
4673
4667
|
]),
|
|
4674
4668
|
_: 1
|
|
4675
4669
|
}, 8, ["modelValue"])
|
|
@@ -4693,9 +4687,9 @@ function Ds(e, t, n, s, i, o) {
|
|
|
4693
4687
|
}, 8, ["loading", "onClick"])
|
|
4694
4688
|
]);
|
|
4695
4689
|
}
|
|
4696
|
-
const Ye = /* @__PURE__ */
|
|
4690
|
+
const Ye = /* @__PURE__ */ F(ys, [["render", xs], ["__scopeId", "data-v-54a3575d"]]);
|
|
4697
4691
|
var me, Le;
|
|
4698
|
-
function
|
|
4692
|
+
function Ts() {
|
|
4699
4693
|
if (Le) return me;
|
|
4700
4694
|
Le = 1;
|
|
4701
4695
|
function e(t, n, s) {
|
|
@@ -4704,19 +4698,19 @@ function Ss() {
|
|
|
4704
4698
|
return me = e, me;
|
|
4705
4699
|
}
|
|
4706
4700
|
var pe, Ve;
|
|
4707
|
-
function
|
|
4701
|
+
function Ds() {
|
|
4708
4702
|
if (Ve) return pe;
|
|
4709
4703
|
Ve = 1;
|
|
4710
|
-
var e =
|
|
4704
|
+
var e = Ts(), t = gt();
|
|
4711
4705
|
function n(s, i, o) {
|
|
4712
4706
|
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
4707
|
}
|
|
4714
4708
|
return pe = n, pe;
|
|
4715
4709
|
}
|
|
4716
|
-
var
|
|
4717
|
-
const
|
|
4710
|
+
var Ss = Ds();
|
|
4711
|
+
const Is = /* @__PURE__ */ He(Ss), $s = {
|
|
4718
4712
|
name: "RemainingTrialButton",
|
|
4719
|
-
components: { IsPremium:
|
|
4713
|
+
components: { IsPremium: ee },
|
|
4720
4714
|
i18nOptions: {
|
|
4721
4715
|
namespace: "RemainingTrialButton",
|
|
4722
4716
|
messages: {
|
|
@@ -4744,13 +4738,13 @@ const Fs = /* @__PURE__ */ He($s), Ls = {
|
|
|
4744
4738
|
}
|
|
4745
4739
|
}
|
|
4746
4740
|
},
|
|
4747
|
-
mixins: [
|
|
4741
|
+
mixins: [Q],
|
|
4748
4742
|
methods: {
|
|
4749
|
-
clamp:
|
|
4743
|
+
clamp: Is
|
|
4750
4744
|
}
|
|
4751
|
-
},
|
|
4752
|
-
function
|
|
4753
|
-
const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), b =
|
|
4745
|
+
}, Fs = { 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" }, Ls = { class: "text-gray-600" }, Vs = { class: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, Bs = { class: "w-56 p-4 text-sm" }, Ms = { class: "font-semibold" }, Ps = { class: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, As = { class: "text-sm text-gray-600" }, Es = { 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" }, zs = { class: "mt-5" };
|
|
4746
|
+
function Rs(e, t, n, s, i, o) {
|
|
4747
|
+
const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), b = ie("close-popper");
|
|
4754
4748
|
return l(), C(h, null, {
|
|
4755
4749
|
default: u(({
|
|
4756
4750
|
accountType: k,
|
|
@@ -4763,19 +4757,19 @@ function Hs(e, t, n, s, i, o) {
|
|
|
4763
4757
|
"popper-class": "trial-popover"
|
|
4764
4758
|
}, {
|
|
4765
4759
|
popper: u(() => [
|
|
4766
|
-
a("div",
|
|
4767
|
-
a("div",
|
|
4760
|
+
a("div", Bs, [
|
|
4761
|
+
a("div", Ms, [
|
|
4768
4762
|
_(d(e.$t("title.1")) + " ", 1),
|
|
4769
|
-
a("span",
|
|
4763
|
+
a("span", Ps, d(e.$t("title.2")), 1),
|
|
4770
4764
|
_(" " + d(e.$t("title.3", { trialDaysLeft: w })) + ". ", 1)
|
|
4771
4765
|
]),
|
|
4772
|
-
a("div",
|
|
4766
|
+
a("div", As, [
|
|
4773
4767
|
_(d(e.$t("title.4")) + " ", 1),
|
|
4774
|
-
a("span",
|
|
4768
|
+
a("span", Es, d(e.$t("title.5")), 1),
|
|
4775
4769
|
t[0] || (t[0] = _(". "))
|
|
4776
4770
|
]),
|
|
4777
|
-
a("div",
|
|
4778
|
-
|
|
4771
|
+
a("div", zs, [
|
|
4772
|
+
G((l(), C(r, {
|
|
4779
4773
|
type: "secondary",
|
|
4780
4774
|
size: "small",
|
|
4781
4775
|
"icon-right": "arrow-right",
|
|
@@ -4792,11 +4786,11 @@ function Hs(e, t, n, s, i, o) {
|
|
|
4792
4786
|
])
|
|
4793
4787
|
]),
|
|
4794
4788
|
default: u(() => [
|
|
4795
|
-
a("div",
|
|
4796
|
-
a("div",
|
|
4797
|
-
a("div",
|
|
4789
|
+
a("div", Fs, [
|
|
4790
|
+
a("div", Ls, d(e.$tc("_common:day", { count: w })) + " " + d(e.$t("button")), 1),
|
|
4791
|
+
a("div", Vs, [
|
|
4798
4792
|
a("div", {
|
|
4799
|
-
style:
|
|
4793
|
+
style: z({
|
|
4800
4794
|
width: o.clamp(w / D * 100, 0, 100) + "%"
|
|
4801
4795
|
}),
|
|
4802
4796
|
class: "to-primary-600 absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500"
|
|
@@ -4810,28 +4804,28 @@ function Hs(e, t, n, s, i, o) {
|
|
|
4810
4804
|
_: 1
|
|
4811
4805
|
});
|
|
4812
4806
|
}
|
|
4813
|
-
const
|
|
4807
|
+
const Os = /* @__PURE__ */ F($s, [["render", Rs]]), ae = yt({
|
|
4814
4808
|
canEdit: !1,
|
|
4815
4809
|
isForm: !0,
|
|
4816
4810
|
setFormValue: null,
|
|
4817
4811
|
removeFormValue: null
|
|
4818
|
-
}),
|
|
4812
|
+
}), Hs = {
|
|
4819
4813
|
name: "DocumentForm",
|
|
4820
4814
|
components: {
|
|
4821
|
-
DocumentFormContainer:
|
|
4822
|
-
IsPremium:
|
|
4823
|
-
IsPremiumPreStep:
|
|
4824
|
-
DocumentSend:
|
|
4825
|
-
RemainingTrialButton:
|
|
4826
|
-
CDropdown:
|
|
4827
|
-
CDropdownItem:
|
|
4815
|
+
DocumentFormContainer: ns,
|
|
4816
|
+
IsPremium: ee,
|
|
4817
|
+
IsPremiumPreStep: X,
|
|
4818
|
+
DocumentSend: gs,
|
|
4819
|
+
RemainingTrialButton: Os,
|
|
4820
|
+
CDropdown: re,
|
|
4821
|
+
CDropdownItem: q
|
|
4828
4822
|
},
|
|
4829
4823
|
setup() {
|
|
4830
|
-
const { isValid: e } =
|
|
4824
|
+
const { isValid: e } = Jt();
|
|
4831
4825
|
return { isValid: e };
|
|
4832
4826
|
},
|
|
4833
|
-
mixins: [
|
|
4834
|
-
provide: () => ({ viewSettings:
|
|
4827
|
+
mixins: [Q],
|
|
4828
|
+
provide: () => ({ viewSettings: ae }),
|
|
4835
4829
|
props: {
|
|
4836
4830
|
document: {
|
|
4837
4831
|
type: Object,
|
|
@@ -4886,14 +4880,14 @@ const Us = /* @__PURE__ */ $(Ls, [["render", Hs]]), le = vt({
|
|
|
4886
4880
|
},
|
|
4887
4881
|
computed: {
|
|
4888
4882
|
canDoActions() {
|
|
4889
|
-
return !!
|
|
4883
|
+
return !!M(this.document, "template.views.read.nodes", []).length;
|
|
4890
4884
|
},
|
|
4891
4885
|
canEdit() {
|
|
4892
4886
|
const { document: e } = this;
|
|
4893
4887
|
return this.view === "edit" && e && (e.id ? e.can("modify") : e.can("create")) && e.status !== "accepted";
|
|
4894
4888
|
},
|
|
4895
4889
|
doConsumeQuota() {
|
|
4896
|
-
const e =
|
|
4890
|
+
const e = M(this.document, "template.doConsumeDocumentQuota");
|
|
4897
4891
|
return typeof e == "boolean" ? e : !0;
|
|
4898
4892
|
}
|
|
4899
4893
|
},
|
|
@@ -4901,12 +4895,12 @@ const Us = /* @__PURE__ */ $(Ls, [["render", Hs]]), le = vt({
|
|
|
4901
4895
|
canEdit: {
|
|
4902
4896
|
immediate: !0,
|
|
4903
4897
|
handler(e) {
|
|
4904
|
-
|
|
4898
|
+
ae.canEdit = !!e;
|
|
4905
4899
|
}
|
|
4906
4900
|
}
|
|
4907
4901
|
},
|
|
4908
4902
|
created() {
|
|
4909
|
-
this.setDocValue && (
|
|
4903
|
+
this.setDocValue && (ae.setFormValue = this.setDocValue), this.removeDocValue && (ae.removeFormValue = this.removeDocValue);
|
|
4910
4904
|
},
|
|
4911
4905
|
methods: {
|
|
4912
4906
|
async openSendModal() {
|
|
@@ -4936,13 +4930,13 @@ const Us = /* @__PURE__ */ $(Ls, [["render", Hs]]), le = vt({
|
|
|
4936
4930
|
);
|
|
4937
4931
|
}
|
|
4938
4932
|
}
|
|
4939
|
-
},
|
|
4933
|
+
}, Us = {
|
|
4940
4934
|
key: 0,
|
|
4941
4935
|
class: "flex w-screen flex-col bg-white"
|
|
4942
|
-
},
|
|
4943
|
-
function
|
|
4936
|
+
}, qs = { class: "flex self-center" }, Gs = { class: "buttons has-addons whitespace-nowrap" };
|
|
4937
|
+
function Ns(e, t, n, s, i, o) {
|
|
4944
4938
|
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",
|
|
4939
|
+
return n.document ? (l(), p("div", Us, [
|
|
4946
4940
|
c(T, {
|
|
4947
4941
|
view: i.view,
|
|
4948
4942
|
"onUpdate:view": t[0] || (t[0] = (y) => i.view = y),
|
|
@@ -4964,8 +4958,8 @@ function js(e, t, n, s, i, o) {
|
|
|
4964
4958
|
class: "inline-flex flex-1 justify-end space-x-5"
|
|
4965
4959
|
}, [
|
|
4966
4960
|
c(b, { feature: "saveDocTemplate" }, {
|
|
4967
|
-
default: u(({ onClick:
|
|
4968
|
-
a("div",
|
|
4961
|
+
default: u(({ onClick: $ }) => [
|
|
4962
|
+
a("div", qs, [
|
|
4969
4963
|
c(h, {
|
|
4970
4964
|
disabled: !o.canDoActions
|
|
4971
4965
|
}, {
|
|
@@ -4988,7 +4982,7 @@ function js(e, t, n, s, i, o) {
|
|
|
4988
4982
|
c(g, {
|
|
4989
4983
|
"icon-props": { stroke: "hsl(205, 100%, 50%)" },
|
|
4990
4984
|
"icon-left": "save",
|
|
4991
|
-
onClick: (
|
|
4985
|
+
onClick: (S) => y || n.document.id ? o.submitSave() : x({ callback: o.submitSave })
|
|
4992
4986
|
}, {
|
|
4993
4987
|
default: u(() => [
|
|
4994
4988
|
_(d(e.$t("_common:save", {
|
|
@@ -5000,7 +4994,7 @@ function js(e, t, n, s, i, o) {
|
|
|
5000
4994
|
c(g, {
|
|
5001
4995
|
disabled: n.isLoading,
|
|
5002
4996
|
"icon-left": "template-color",
|
|
5003
|
-
onClick: (
|
|
4997
|
+
onClick: (S) => f ? o.saveAsTemplate() : $({
|
|
5004
4998
|
callback: o.saveAsTemplate
|
|
5005
4999
|
})
|
|
5006
5000
|
}, {
|
|
@@ -5018,20 +5012,20 @@ function js(e, t, n, s, i, o) {
|
|
|
5018
5012
|
]),
|
|
5019
5013
|
_: 2
|
|
5020
5014
|
}, 1024),
|
|
5021
|
-
|
|
5015
|
+
A(e.$slots, "nav-right-action", {}, () => [
|
|
5022
5016
|
c(k),
|
|
5023
|
-
a("div",
|
|
5017
|
+
a("div", Gs, [
|
|
5024
5018
|
c(r, {
|
|
5025
5019
|
ref: "sendButton",
|
|
5026
5020
|
disabled: !o.canDoActions,
|
|
5027
5021
|
loading: n.isLoading,
|
|
5028
5022
|
"data-onboarding": "send-button",
|
|
5029
5023
|
size: "small",
|
|
5030
|
-
class:
|
|
5024
|
+
class: V(["d-nav-button position right !h-full", e.mq === "sm" && "w-9"]),
|
|
5031
5025
|
type: "secondary",
|
|
5032
5026
|
icon: e.mq === "sm" ? "send" : "",
|
|
5033
5027
|
label: e.mq === "sm" ? "" : e.$t("_common:reviewSend"),
|
|
5034
|
-
onClick: (
|
|
5028
|
+
onClick: ($) => y || !o.doConsumeQuota || n.document.id ? o.openSendModal() : x({ callback: o.openSendModal })
|
|
5035
5029
|
}, null, 8, ["disabled", "loading", "class", "icon", "label", "onClick"])
|
|
5036
5030
|
])
|
|
5037
5031
|
])
|
|
@@ -5062,7 +5056,7 @@ function js(e, t, n, s, i, o) {
|
|
|
5062
5056
|
}, null, 8, ["_document", "set-form-value", "remove-form-value", "on-save-document"])
|
|
5063
5057
|
])) : v("", !0);
|
|
5064
5058
|
}
|
|
5065
|
-
const
|
|
5059
|
+
const Ws = /* @__PURE__ */ F(Hs, [["render", Ns]]), js = /* @__PURE__ */ de({
|
|
5066
5060
|
__name: "TemplateActionsDropdown",
|
|
5067
5061
|
props: {
|
|
5068
5062
|
template: {},
|
|
@@ -5070,7 +5064,7 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5070
5064
|
},
|
|
5071
5065
|
emits: ["edit", "rename", "remove"],
|
|
5072
5066
|
setup(e, { emit: t }) {
|
|
5073
|
-
const { t: n } = Ce, s =
|
|
5067
|
+
const { t: n } = Ce, s = K.baseUrl, i = e, o = t;
|
|
5074
5068
|
function r() {
|
|
5075
5069
|
o("edit", i.template.id);
|
|
5076
5070
|
}
|
|
@@ -5085,14 +5079,14 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5085
5079
|
await Ue(k) && we("info", n("copyMessage"));
|
|
5086
5080
|
}
|
|
5087
5081
|
return (k, w) => {
|
|
5088
|
-
const T =
|
|
5089
|
-
return l(), C(
|
|
5082
|
+
const T = ie("tooltip");
|
|
5083
|
+
return l(), C(O(re), {
|
|
5090
5084
|
style: { top: "-8px", right: "-4px" },
|
|
5091
|
-
onClick: w[0] || (w[0] =
|
|
5085
|
+
onClick: w[0] || (w[0] = j(() => {
|
|
5092
5086
|
}, ["stop"]))
|
|
5093
5087
|
}, {
|
|
5094
5088
|
trigger: u(() => [
|
|
5095
|
-
|
|
5089
|
+
G(c(O(Re), {
|
|
5096
5090
|
icon: "more-vertical",
|
|
5097
5091
|
type: "none",
|
|
5098
5092
|
pattern: "tertiary",
|
|
@@ -5102,7 +5096,7 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5102
5096
|
])
|
|
5103
5097
|
]),
|
|
5104
5098
|
default: u(() => [
|
|
5105
|
-
c(
|
|
5099
|
+
c(O(q), {
|
|
5106
5100
|
"icon-left": "template-color",
|
|
5107
5101
|
onClick: r,
|
|
5108
5102
|
"data-test": "edit-item"
|
|
@@ -5112,7 +5106,7 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5112
5106
|
]),
|
|
5113
5107
|
_: 1
|
|
5114
5108
|
}),
|
|
5115
|
-
c(
|
|
5109
|
+
c(O(q), {
|
|
5116
5110
|
"icon-props": { size: 16 },
|
|
5117
5111
|
"icon-left": "edit",
|
|
5118
5112
|
onClick: g,
|
|
@@ -5123,8 +5117,8 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5123
5117
|
]),
|
|
5124
5118
|
_: 1
|
|
5125
5119
|
}),
|
|
5126
|
-
c(
|
|
5127
|
-
c(
|
|
5120
|
+
c(O(q), { separator: "" }),
|
|
5121
|
+
c(O(q), {
|
|
5128
5122
|
"icon-props": { size: 16 },
|
|
5129
5123
|
"icon-left": "link",
|
|
5130
5124
|
onClick: b,
|
|
@@ -5135,8 +5129,8 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5135
5129
|
]),
|
|
5136
5130
|
_: 1
|
|
5137
5131
|
}),
|
|
5138
|
-
c(
|
|
5139
|
-
c(
|
|
5132
|
+
c(O(q), { separator: "" }),
|
|
5133
|
+
c(O(q), {
|
|
5140
5134
|
"icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" },
|
|
5141
5135
|
"icon-left": "trash",
|
|
5142
5136
|
onClick: h,
|
|
@@ -5152,7 +5146,7 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5152
5146
|
});
|
|
5153
5147
|
};
|
|
5154
5148
|
}
|
|
5155
|
-
}),
|
|
5149
|
+
}), Zs = {
|
|
5156
5150
|
name: "DocumentFormRecent",
|
|
5157
5151
|
i18nOptions: {
|
|
5158
5152
|
namespaces: "DocumentFormRecent",
|
|
@@ -5168,9 +5162,9 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5168
5162
|
}
|
|
5169
5163
|
},
|
|
5170
5164
|
components: {
|
|
5171
|
-
IsPremium:
|
|
5172
|
-
IsPremiumPreStep:
|
|
5173
|
-
CSkeleton:
|
|
5165
|
+
IsPremium: ee,
|
|
5166
|
+
IsPremiumPreStep: X,
|
|
5167
|
+
CSkeleton: en
|
|
5174
5168
|
},
|
|
5175
5169
|
emits: ["save-template", "use-doc-template"],
|
|
5176
5170
|
data() {
|
|
@@ -5183,7 +5177,7 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5183
5177
|
};
|
|
5184
5178
|
},
|
|
5185
5179
|
computed: {
|
|
5186
|
-
...
|
|
5180
|
+
...R({
|
|
5187
5181
|
docById: "documents2/byId"
|
|
5188
5182
|
})
|
|
5189
5183
|
},
|
|
@@ -5191,8 +5185,8 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5191
5185
|
this.onLoadDocuments();
|
|
5192
5186
|
},
|
|
5193
5187
|
methods: {
|
|
5194
|
-
...
|
|
5195
|
-
loadDocument:
|
|
5188
|
+
...Z({
|
|
5189
|
+
loadDocument: P.LOAD_DOCUMENT2
|
|
5196
5190
|
}),
|
|
5197
5191
|
async onInput() {
|
|
5198
5192
|
this.isLoading = !0, this.onLoadDocuments();
|
|
@@ -5200,7 +5194,7 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5200
5194
|
async fetchDocuments(e) {
|
|
5201
5195
|
const t = this.query ? 180 : 90, n = {
|
|
5202
5196
|
createdAt: {
|
|
5203
|
-
$gte: this.$formatDate(
|
|
5197
|
+
$gte: this.$formatDate(vt(/* @__PURE__ */ new Date(), t), "yyyy-MM-dd")
|
|
5204
5198
|
},
|
|
5205
5199
|
// Only provide or if there is a search query to filter on
|
|
5206
5200
|
...this.query && {
|
|
@@ -5217,7 +5211,7 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5217
5211
|
}
|
|
5218
5212
|
]
|
|
5219
5213
|
}
|
|
5220
|
-
}, { data: s } = await
|
|
5214
|
+
}, { data: s } = await Ct.getAll({
|
|
5221
5215
|
lean: !0,
|
|
5222
5216
|
filter: encodeURIComponent(JSON.stringify(n)),
|
|
5223
5217
|
fields: "clients,data.name,createdAt",
|
|
@@ -5241,26 +5235,26 @@ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
|
|
|
5241
5235
|
return this.$emit("use-doc-template", { documentId: e });
|
|
5242
5236
|
}
|
|
5243
5237
|
}
|
|
5244
|
-
},
|
|
5238
|
+
}, Ks = {
|
|
5245
5239
|
class: "flex w-full",
|
|
5246
5240
|
style: { "padding-bottom": "1em" }
|
|
5247
|
-
},
|
|
5241
|
+
}, Qs = { class: "recent-list" }, Ys = {
|
|
5248
5242
|
key: 1,
|
|
5249
5243
|
class: "rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400",
|
|
5250
5244
|
style: { "font-size": "15px" }
|
|
5251
|
-
},
|
|
5245
|
+
}, Js = {
|
|
5252
5246
|
key: 2,
|
|
5253
5247
|
class: "text-center text-gray-400",
|
|
5254
5248
|
style: { padding: "1em" }
|
|
5255
|
-
},
|
|
5249
|
+
}, Xs = ["onClick", "onMouseoverPassive"], ea = {
|
|
5256
5250
|
key: 0,
|
|
5257
5251
|
style: { display: "inline-flex", "align-items": "center", position: "absolute", right: "1em", top: "50%", transform: "translateY(-50%)" }
|
|
5258
5252
|
};
|
|
5259
|
-
function
|
|
5253
|
+
function ta(e, t, n, s, i, o) {
|
|
5260
5254
|
const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"), b = m("IsPremiumPreStep"), k = m("IsPremium");
|
|
5261
5255
|
return l(), p("div", null, [
|
|
5262
|
-
a("div",
|
|
5263
|
-
|
|
5256
|
+
a("div", Ks, [
|
|
5257
|
+
A(e.$slots, "default", {}, void 0, !0),
|
|
5264
5258
|
i.hasItems ? (l(), C(r, {
|
|
5265
5259
|
key: 0,
|
|
5266
5260
|
modelValue: i.query,
|
|
@@ -5276,8 +5270,8 @@ function ia(e, t, n, s, i, o) {
|
|
|
5276
5270
|
class: "hidden md:flex"
|
|
5277
5271
|
}, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) : v("", !0)
|
|
5278
5272
|
]),
|
|
5279
|
-
a("div",
|
|
5280
|
-
i.isLoading && !i.list.length ? (l(), p(
|
|
5273
|
+
a("div", Qs, [
|
|
5274
|
+
i.isLoading && !i.list.length ? (l(), p(I, { key: 0 }, E(3, (w) => a("div", {
|
|
5281
5275
|
key: w,
|
|
5282
5276
|
class: "recent-item placeholder"
|
|
5283
5277
|
}, [
|
|
@@ -5286,12 +5280,12 @@ function ia(e, t, n, s, i, o) {
|
|
|
5286
5280
|
class: "recent-item-name"
|
|
5287
5281
|
}),
|
|
5288
5282
|
c(g, { width: "35%" })
|
|
5289
|
-
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (l(), p("div",
|
|
5283
|
+
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (l(), p("div", Ys, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (l(), p("div", Js, d(e.$t("noResults")), 1)) : (l(), C(k, { key: 3 }, {
|
|
5290
5284
|
default: u(({ canCreateTemplate: w, canUseTemplate: T }) => [
|
|
5291
5285
|
c(b, { feature: "useDocTemplate" }, {
|
|
5292
5286
|
default: u(({ onClick: D }) => [
|
|
5293
5287
|
a("div", null, [
|
|
5294
|
-
(l(!0), p(
|
|
5288
|
+
(l(!0), p(I, null, E(i.list, (y, f) => (l(), p("div", {
|
|
5295
5289
|
key: y._id,
|
|
5296
5290
|
class: "recent-item",
|
|
5297
5291
|
onClick: (x) => T ? o.onUseDocTemplate(y._id) : D({
|
|
@@ -5301,16 +5295,16 @@ function ia(e, t, n, s, i, o) {
|
|
|
5301
5295
|
onMouseleavePassive: t[1] || (t[1] = (x) => i.hoverIndex = null)
|
|
5302
5296
|
}, [
|
|
5303
5297
|
a("div", {
|
|
5304
|
-
class:
|
|
5298
|
+
class: V([{ "text-gray-400": !y.data.name }, "recent-item-name"])
|
|
5305
5299
|
}, d(y.data.name || e.$t("_common:untitled")), 3),
|
|
5306
5300
|
a("div", null, d(e.$formatDistanceToNow(y.createdAt)), 1),
|
|
5307
|
-
i.hoverIndex === f ? (l(), p("div",
|
|
5301
|
+
i.hoverIndex === f ? (l(), p("div", ea, [
|
|
5308
5302
|
c(b, { feature: "saveDocTemplate" }, {
|
|
5309
5303
|
default: u(({ onClick: x }) => [
|
|
5310
5304
|
c(h, {
|
|
5311
5305
|
style: { "margin-left": "1em" },
|
|
5312
5306
|
size: "small",
|
|
5313
|
-
onClick:
|
|
5307
|
+
onClick: j(($) => w ? o.onSaveDocumentTemplate(y._id) : x({
|
|
5314
5308
|
callback: () => o.onSaveDocumentTemplate(y._id)
|
|
5315
5309
|
}), ["stop"])
|
|
5316
5310
|
}, {
|
|
@@ -5333,7 +5327,7 @@ function ia(e, t, n, s, i, o) {
|
|
|
5333
5327
|
_: 1
|
|
5334
5328
|
})
|
|
5335
5329
|
])) : v("", !0)
|
|
5336
|
-
], 40,
|
|
5330
|
+
], 40, Xs))), 128))
|
|
5337
5331
|
])
|
|
5338
5332
|
]),
|
|
5339
5333
|
_: 2
|
|
@@ -5344,13 +5338,13 @@ function ia(e, t, n, s, i, o) {
|
|
|
5344
5338
|
])
|
|
5345
5339
|
]);
|
|
5346
5340
|
}
|
|
5347
|
-
const
|
|
5341
|
+
const na = /* @__PURE__ */ F(Zs, [["render", ta], ["__scopeId", "data-v-afd30dd3"]]), ia = { class: "item-paper" }, oa = {
|
|
5348
5342
|
key: 2,
|
|
5349
5343
|
class: "absolute bottom-2 right-2"
|
|
5350
|
-
},
|
|
5344
|
+
}, sa = {
|
|
5351
5345
|
key: 3,
|
|
5352
5346
|
class: "add-button"
|
|
5353
|
-
},
|
|
5347
|
+
}, aa = { class: "item-footer" }, la = ["textContent"], ra = ["textContent"], da = /* @__PURE__ */ de({
|
|
5354
5348
|
__name: "DocumentIcon",
|
|
5355
5349
|
props: {
|
|
5356
5350
|
isPlaceholder: { type: Boolean, default: !1 },
|
|
@@ -5362,9 +5356,9 @@ const oa = /* @__PURE__ */ $(Qs, [["render", ia], ["__scopeId", "data-v-afd30dd3
|
|
|
5362
5356
|
},
|
|
5363
5357
|
emits: ["triggerOpenTemplate"],
|
|
5364
5358
|
setup(e, { emit: t }) {
|
|
5365
|
-
const n = e, s = t, i = () => s("triggerOpenTemplate"), o =
|
|
5359
|
+
const n = e, s = t, i = () => s("triggerOpenTemplate"), o = bt(), r = kt(), g = H(() => r.style), h = H(() => r.staticClass), b = H(() => r.class), k = H(() => r.key), w = H(() => r.attrs), T = H(
|
|
5366
5360
|
() => Ce.t("_common:empty", { thing: Ce.t("_common:template") })
|
|
5367
|
-
), D =
|
|
5361
|
+
), D = H(() => wt(n.name, 60));
|
|
5368
5362
|
return (y, f) => {
|
|
5369
5363
|
const x = m("CIcon");
|
|
5370
5364
|
return l(), p("div", be(w.value, {
|
|
@@ -5381,22 +5375,22 @@ const oa = /* @__PURE__ */ $(Qs, [["render", ia], ["__scopeId", "data-v-afd30dd3
|
|
|
5381
5375
|
style: g.value,
|
|
5382
5376
|
onClick: i
|
|
5383
5377
|
}), [
|
|
5384
|
-
a("div",
|
|
5378
|
+
a("div", ia, [
|
|
5385
5379
|
y.thumbnail ? (l(), p("div", {
|
|
5386
5380
|
key: 0,
|
|
5387
|
-
style:
|
|
5381
|
+
style: z([{
|
|
5388
5382
|
backgroundImage: `url(${y.thumbnail})`
|
|
5389
5383
|
}, { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }])
|
|
5390
|
-
}, null, 4)) : y.isPlaceholder || y.isAdd ? v("", !0) : (l(), C(
|
|
5384
|
+
}, null, 4)) : y.isPlaceholder || y.isAdd ? v("", !0) : (l(), C(tn, {
|
|
5391
5385
|
key: 1,
|
|
5392
5386
|
media: y.media,
|
|
5393
5387
|
preview: "",
|
|
5394
5388
|
class: "item-media"
|
|
5395
5389
|
}, null, 8, ["media"])),
|
|
5396
|
-
|
|
5397
|
-
|
|
5390
|
+
O(o).badge ? (l(), p("div", oa, [
|
|
5391
|
+
A(y.$slots, "badge", {}, void 0, !0)
|
|
5398
5392
|
])) : v("", !0),
|
|
5399
|
-
y.isAdd ? (l(), p("div",
|
|
5393
|
+
y.isAdd ? (l(), p("div", sa, [
|
|
5400
5394
|
c(x, {
|
|
5401
5395
|
size: 18,
|
|
5402
5396
|
"stroke-width": 3,
|
|
@@ -5404,27 +5398,27 @@ const oa = /* @__PURE__ */ $(Qs, [["render", ia], ["__scopeId", "data-v-afd30dd3
|
|
|
5404
5398
|
})
|
|
5405
5399
|
])) : v("", !0)
|
|
5406
5400
|
]),
|
|
5407
|
-
a("div",
|
|
5401
|
+
a("div", aa, [
|
|
5408
5402
|
y.isAdd ? (l(), p("div", {
|
|
5409
5403
|
key: 0,
|
|
5410
5404
|
class: "item-text",
|
|
5411
5405
|
style: { color: "hsl(0, 0%, 55%)" },
|
|
5412
5406
|
textContent: d(T.value)
|
|
5413
|
-
}, null, 8,
|
|
5407
|
+
}, null, 8, la)) : y.name ? (l(), p(I, { key: 1 }, [
|
|
5414
5408
|
a("div", {
|
|
5415
5409
|
class: "item-text",
|
|
5416
5410
|
textContent: d(D.value)
|
|
5417
|
-
}, null, 8,
|
|
5418
|
-
|
|
5411
|
+
}, null, 8, ra),
|
|
5412
|
+
A(y.$slots, "default", {}, void 0, !0)
|
|
5419
5413
|
], 64)) : v("", !0)
|
|
5420
5414
|
])
|
|
5421
5415
|
], 16);
|
|
5422
5416
|
};
|
|
5423
5417
|
}
|
|
5424
|
-
}),
|
|
5418
|
+
}), ca = /* @__PURE__ */ F(da, [["__scopeId", "data-v-f3357197"]]), ua = {
|
|
5425
5419
|
name: "HorizontalScroll",
|
|
5426
5420
|
components: {
|
|
5427
|
-
Simplebar:
|
|
5421
|
+
Simplebar: J
|
|
5428
5422
|
},
|
|
5429
5423
|
emits: ["expand"],
|
|
5430
5424
|
data() {
|
|
@@ -5473,20 +5467,20 @@ const oa = /* @__PURE__ */ $(Qs, [["render", ia], ["__scopeId", "data-v-afd30dd3
|
|
|
5473
5467
|
}, 50);
|
|
5474
5468
|
}
|
|
5475
5469
|
}
|
|
5476
|
-
},
|
|
5470
|
+
}, ma = {
|
|
5477
5471
|
ref: "container",
|
|
5478
5472
|
class: "horizontal-scroll"
|
|
5479
|
-
},
|
|
5480
|
-
function
|
|
5473
|
+
}, pa = { class: "hl-navigation" }, ha = { class: "hl-container" }, fa = { class: "flex w-full" };
|
|
5474
|
+
function ga(e, t, n, s, i, o) {
|
|
5481
5475
|
const r = m("CButton"), g = m("Simplebar");
|
|
5482
|
-
return l(), p("div",
|
|
5483
|
-
a("div",
|
|
5476
|
+
return l(), p("div", ma, [
|
|
5477
|
+
a("div", pa, [
|
|
5484
5478
|
i.hasPrev ? (l(), p("div", {
|
|
5485
5479
|
key: 0,
|
|
5486
5480
|
class: "hl-btn-left max-sm:hidden",
|
|
5487
5481
|
onClick: t[0] || (t[0] = (h) => o.go(-1))
|
|
5488
5482
|
}, [
|
|
5489
|
-
|
|
5483
|
+
A(e.$slots, "nav-prev", {}, () => [
|
|
5490
5484
|
c(r, {
|
|
5491
5485
|
"icon-props": { size: 22 },
|
|
5492
5486
|
icon: "chevron-left",
|
|
@@ -5501,7 +5495,7 @@ function va(e, t, n, s, i, o) {
|
|
|
5501
5495
|
class: "hl-btn-right max-sm:hidden",
|
|
5502
5496
|
onClick: t[2] || (t[2] = (h) => o.go(1))
|
|
5503
5497
|
}, [
|
|
5504
|
-
|
|
5498
|
+
A(e.$slots, "nav-prev", {}, () => [
|
|
5505
5499
|
c(r, {
|
|
5506
5500
|
"icon-props": { size: 22 },
|
|
5507
5501
|
icon: "chevron-right",
|
|
@@ -5513,15 +5507,15 @@ function va(e, t, n, s, i, o) {
|
|
|
5513
5507
|
], !0)
|
|
5514
5508
|
])) : v("", !0)
|
|
5515
5509
|
]),
|
|
5516
|
-
a("div",
|
|
5510
|
+
a("div", ha, [
|
|
5517
5511
|
c(g, {
|
|
5518
5512
|
ref: "list",
|
|
5519
5513
|
class: "hl-list",
|
|
5520
5514
|
onScroll: o.scrollHandler
|
|
5521
5515
|
}, {
|
|
5522
5516
|
default: u(() => [
|
|
5523
|
-
a("div",
|
|
5524
|
-
|
|
5517
|
+
a("div", fa, [
|
|
5518
|
+
A(e.$slots, "default", {}, void 0, !0)
|
|
5525
5519
|
])
|
|
5526
5520
|
]),
|
|
5527
5521
|
_: 3
|
|
@@ -5529,12 +5523,12 @@ function va(e, t, n, s, i, o) {
|
|
|
5529
5523
|
])
|
|
5530
5524
|
], 512);
|
|
5531
5525
|
}
|
|
5532
|
-
const
|
|
5533
|
-
function
|
|
5526
|
+
const ya = /* @__PURE__ */ F(ua, [["render", ga], ["__scopeId", "data-v-f0c49197"]]);
|
|
5527
|
+
function va(e, { availableProducts: t }) {
|
|
5534
5528
|
if (!e) throw new Error("Missing parameter templateId");
|
|
5535
5529
|
const n = t, s = Object.keys(n).find((i) => {
|
|
5536
5530
|
var r;
|
|
5537
|
-
const o =
|
|
5531
|
+
const o = M(
|
|
5538
5532
|
n[i],
|
|
5539
5533
|
"metadata.companyPurchase"
|
|
5540
5534
|
);
|
|
@@ -5542,16 +5536,16 @@ function ba(e, { availableProducts: t }) {
|
|
|
5542
5536
|
});
|
|
5543
5537
|
return s ? n[s] : null;
|
|
5544
5538
|
}
|
|
5545
|
-
async function
|
|
5539
|
+
async function Ca(e) {
|
|
5546
5540
|
if (!e) throw new Error("Missing argument stripeProduct");
|
|
5547
|
-
const t = e == null ? void 0 : e.prices[0], { data: n } = await
|
|
5541
|
+
const t = e == null ? void 0 : e.prices[0], { data: n } = await _t.createCheckoutSession({
|
|
5548
5542
|
items: [
|
|
5549
5543
|
{
|
|
5550
5544
|
stripePriceStripeId: t.stripeId,
|
|
5551
5545
|
quantity: 1
|
|
5552
5546
|
}
|
|
5553
5547
|
],
|
|
5554
|
-
successUrl: `${
|
|
5548
|
+
successUrl: `${K.baseUrl}/purchase/success`
|
|
5555
5549
|
// cancelUrl: window.location.href
|
|
5556
5550
|
}), { redirectUrl: s } = n;
|
|
5557
5551
|
window.open(s, "_blank");
|
|
@@ -5559,7 +5553,7 @@ async function ka(e) {
|
|
|
5559
5553
|
function Je(e, { availableProducts: t }) {
|
|
5560
5554
|
var i, o, r;
|
|
5561
5555
|
let n = null;
|
|
5562
|
-
const s =
|
|
5556
|
+
const s = va(e.templateId, {
|
|
5563
5557
|
availableProducts: t
|
|
5564
5558
|
});
|
|
5565
5559
|
return s && (n = {
|
|
@@ -5567,16 +5561,16 @@ function Je(e, { availableProducts: t }) {
|
|
|
5567
5561
|
currency: (o = s == null ? void 0 : s.prices) == null ? void 0 : o[0].currency
|
|
5568
5562
|
}),
|
|
5569
5563
|
isPurchased: ((r = e.purchaseInfo) == null ? void 0 : r.isPurchased) || !1,
|
|
5570
|
-
onBuy: async () =>
|
|
5564
|
+
onBuy: async () => Ca(s)
|
|
5571
5565
|
}), n;
|
|
5572
5566
|
}
|
|
5573
|
-
const
|
|
5567
|
+
const ba = {
|
|
5574
5568
|
name: "GalleryTemplateModal",
|
|
5575
5569
|
components: {
|
|
5576
|
-
Simplebar:
|
|
5577
|
-
DocumentLayout:
|
|
5578
|
-
IsPremium:
|
|
5579
|
-
IsPremiumPreStep:
|
|
5570
|
+
Simplebar: J,
|
|
5571
|
+
DocumentLayout: Rt,
|
|
5572
|
+
IsPremium: ee,
|
|
5573
|
+
IsPremiumPreStep: X
|
|
5580
5574
|
},
|
|
5581
5575
|
emits: ["use-template", "close"],
|
|
5582
5576
|
props: {
|
|
@@ -5639,7 +5633,7 @@ const wa = {
|
|
|
5639
5633
|
};
|
|
5640
5634
|
},
|
|
5641
5635
|
computed: {
|
|
5642
|
-
...
|
|
5636
|
+
...R({
|
|
5643
5637
|
isLoading: "templates/isPosting",
|
|
5644
5638
|
stripeProducts: "stripe/products",
|
|
5645
5639
|
isSuperUser: "application/isSuperUser"
|
|
@@ -5689,7 +5683,7 @@ const wa = {
|
|
|
5689
5683
|
const e = this.template.id;
|
|
5690
5684
|
e || (this.templateStat = null);
|
|
5691
5685
|
try {
|
|
5692
|
-
const { data: t } = await
|
|
5686
|
+
const { data: t } = await xt.get(e);
|
|
5693
5687
|
this.templateStat = t;
|
|
5694
5688
|
} catch {
|
|
5695
5689
|
this.templateStat = null;
|
|
@@ -5705,25 +5699,25 @@ const wa = {
|
|
|
5705
5699
|
this.template && typeof this.onSaveTemplate == "function" && (this.didSave = await this.onSaveTemplate(this.template));
|
|
5706
5700
|
},
|
|
5707
5701
|
async copyToClipboard(e) {
|
|
5708
|
-
const t = `${
|
|
5702
|
+
const t = `${K.baseUrl}/template/${e}`;
|
|
5709
5703
|
await Ue(t) && we("info", this.$t("copyMessage"));
|
|
5710
5704
|
}
|
|
5711
5705
|
}
|
|
5712
|
-
},
|
|
5706
|
+
}, ka = { class: "template-modal font-inter bg-gray-200" }, wa = { style: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": `rgb(244, 244, 244) 0px 2px 14px 0px inset,
|
|
5713
5707
|
rgba(0, 0, 0, 0.09) 0px 8px 35px 0px,
|
|
5714
|
-
rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset`, flex: "1 1 auto", "min-height": "0" } },
|
|
5708
|
+
rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset`, flex: "1 1 auto", "min-height": "0" } }, _a = { style: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, xa = { style: { "padding-bottom": "2em" } }, Ta = { style: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, Da = { style: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, Sa = { style: { hyphens: "auto" } }, Ia = {
|
|
5715
5709
|
key: 0,
|
|
5716
5710
|
style: { "padding-top": "1.5em" },
|
|
5717
5711
|
class: "flex items-center"
|
|
5718
|
-
},
|
|
5712
|
+
}, $a = { style: { "margin-left": "0.5em" } }, Fa = { style: { "font-weight": "500" } }, La = { style: { "font-weight": "400", "font-size": "14px" } }, Va = { style: { "padding-bottom": "2em" } }, Ba = {
|
|
5719
5713
|
key: 0,
|
|
5720
5714
|
class: "mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm"
|
|
5721
|
-
},
|
|
5722
|
-
function
|
|
5715
|
+
}, Ma = { class: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, Pa = ["textContent"], Aa = ["textContent"];
|
|
5716
|
+
function Ea(e, t, n, s, i, o) {
|
|
5723
5717
|
var T;
|
|
5724
5718
|
const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"), b = m("CButton"), k = m("IsPremiumPreStep"), w = m("IsPremium");
|
|
5725
|
-
return l(), p("div",
|
|
5726
|
-
a("div",
|
|
5719
|
+
return l(), p("div", ka, [
|
|
5720
|
+
a("div", wa, [
|
|
5727
5721
|
c(g, {
|
|
5728
5722
|
class: "h-full w-full",
|
|
5729
5723
|
"data-simplebar-auto-hide": "false"
|
|
@@ -5733,7 +5727,7 @@ function Ra(e, t, n, s, i, o) {
|
|
|
5733
5727
|
key: 0,
|
|
5734
5728
|
document: o.previewDocument
|
|
5735
5729
|
}, null, 8, ["document"])) : v("", !0),
|
|
5736
|
-
n.product && !i.privateProduct.isPurchased ? (l(), C(
|
|
5730
|
+
n.product && !i.privateProduct.isPurchased ? (l(), C(W("style"), { key: 1 }, {
|
|
5737
5731
|
default: u(() => t[1] || (t[1] = [
|
|
5738
5732
|
_(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")
|
|
5739
5733
|
])),
|
|
@@ -5743,37 +5737,37 @@ function Ra(e, t, n, s, i, o) {
|
|
|
5743
5737
|
_: 1
|
|
5744
5738
|
})
|
|
5745
5739
|
]),
|
|
5746
|
-
a("div",
|
|
5747
|
-
a("div",
|
|
5748
|
-
a("div",
|
|
5749
|
-
a("div",
|
|
5750
|
-
(T = i.templateStat) != null && T.usedTimes ? (l(), p(
|
|
5740
|
+
a("div", _a, [
|
|
5741
|
+
a("div", xa, [
|
|
5742
|
+
a("div", Ta, d(n.meta.name), 1),
|
|
5743
|
+
a("div", Da, [
|
|
5744
|
+
(T = i.templateStat) != null && T.usedTimes ? (l(), p(I, { key: 0 }, [
|
|
5751
5745
|
_(d(e.$t("_common:used").capitalize()) + " " + d(i.templateStat.usedTimes) + " " + d(e.$t("_common:times", { count: i.templateStat.usedTimes })), 1)
|
|
5752
5746
|
], 64)) : v("", !0)
|
|
5753
5747
|
]),
|
|
5754
|
-
a("div",
|
|
5755
|
-
n.meta.author ? (l(), p("div",
|
|
5748
|
+
a("div", Sa, d(n.meta.text), 1),
|
|
5749
|
+
n.meta.author ? (l(), p("div", Ia, [
|
|
5756
5750
|
a("div", {
|
|
5757
|
-
style:
|
|
5751
|
+
style: z([{ "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, {
|
|
5758
5752
|
backgroundImage: `url(${n.meta.author.avatar})`
|
|
5759
5753
|
}])
|
|
5760
5754
|
}, null, 4),
|
|
5761
|
-
a("div",
|
|
5762
|
-
a("div",
|
|
5763
|
-
a("div",
|
|
5764
|
-
n.meta.author.templatesCount ? (l(), p(
|
|
5755
|
+
a("div", $a, [
|
|
5756
|
+
a("div", Fa, d(n.meta.author.name), 1),
|
|
5757
|
+
a("div", La, [
|
|
5758
|
+
n.meta.author.templatesCount ? (l(), p(I, { key: 0 }, [
|
|
5765
5759
|
_(d(n.meta.author.templatesCount) + " " + d(e.$t("_common:template", { count: n.meta.author.templatesCount })), 1)
|
|
5766
|
-
], 64)) : (l(), p(
|
|
5760
|
+
], 64)) : (l(), p(I, { key: 1 }, [
|
|
5767
5761
|
_(d(e.$t("_common:template").capitalize()), 1)
|
|
5768
5762
|
], 64))
|
|
5769
5763
|
])
|
|
5770
5764
|
])
|
|
5771
5765
|
])) : v("", !0)
|
|
5772
5766
|
]),
|
|
5773
|
-
a("div",
|
|
5774
|
-
n.product ? (l(), p(
|
|
5775
|
-
i.privateProduct.isPurchased ? (l(), p("div",
|
|
5776
|
-
a("div",
|
|
5767
|
+
a("div", Va, [
|
|
5768
|
+
n.product ? (l(), p(I, { key: 0 }, [
|
|
5769
|
+
i.privateProduct.isPurchased ? (l(), p("div", Ba, [
|
|
5770
|
+
a("div", Ma, [
|
|
5777
5771
|
c(h, {
|
|
5778
5772
|
type: "check",
|
|
5779
5773
|
size: "12",
|
|
@@ -5785,7 +5779,7 @@ function Ra(e, t, n, s, i, o) {
|
|
|
5785
5779
|
textContent: d(
|
|
5786
5780
|
e.$t("_common:purchased", { thing: e.$t("_common:template") })
|
|
5787
5781
|
)
|
|
5788
|
-
}, null, 8,
|
|
5782
|
+
}, null, 8, Pa)
|
|
5789
5783
|
])) : (l(), C(b, {
|
|
5790
5784
|
key: 1,
|
|
5791
5785
|
type: "secondary",
|
|
@@ -5799,7 +5793,7 @@ function Ra(e, t, n, s, i, o) {
|
|
|
5799
5793
|
a("div", {
|
|
5800
5794
|
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",
|
|
5801
5795
|
textContent: d(i.privateProduct.price)
|
|
5802
|
-
}, null, 8,
|
|
5796
|
+
}, null, 8, Aa)
|
|
5803
5797
|
]),
|
|
5804
5798
|
_: 1
|
|
5805
5799
|
}, 8, ["onClick"]))
|
|
@@ -5870,7 +5864,7 @@ function Ra(e, t, n, s, i, o) {
|
|
|
5870
5864
|
])
|
|
5871
5865
|
]);
|
|
5872
5866
|
}
|
|
5873
|
-
const
|
|
5867
|
+
const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-d37ef215"]]), Ra = {
|
|
5874
5868
|
name: "GalleryLogic",
|
|
5875
5869
|
i18nOptions: {
|
|
5876
5870
|
namespaces: "GalleryLogic",
|
|
@@ -5928,7 +5922,7 @@ const Oa = /* @__PURE__ */ $(wa, [["render", Ra], ["__scopeId", "data-v-d37ef215
|
|
|
5928
5922
|
},
|
|
5929
5923
|
filterLanguage: {
|
|
5930
5924
|
type: String,
|
|
5931
|
-
default: () =>
|
|
5925
|
+
default: () => K.brand === "cling" ? "sv" : "en"
|
|
5932
5926
|
},
|
|
5933
5927
|
showTemplateAuthor: {
|
|
5934
5928
|
type: Boolean,
|
|
@@ -5970,7 +5964,7 @@ const Oa = /* @__PURE__ */ $(wa, [["render", Ra], ["__scopeId", "data-v-d37ef215
|
|
|
5970
5964
|
};
|
|
5971
5965
|
},
|
|
5972
5966
|
computed: {
|
|
5973
|
-
...
|
|
5967
|
+
...R({
|
|
5974
5968
|
stripeProducts: "stripe/products"
|
|
5975
5969
|
}),
|
|
5976
5970
|
galleryItems() {
|
|
@@ -5995,7 +5989,7 @@ const Oa = /* @__PURE__ */ $(wa, [["render", Ra], ["__scopeId", "data-v-d37ef215
|
|
|
5995
5989
|
}
|
|
5996
5990
|
},
|
|
5997
5991
|
beforeCreate() {
|
|
5998
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
5992
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Nt);
|
|
5999
5993
|
},
|
|
6000
5994
|
async created() {
|
|
6001
5995
|
var n, s, i, o;
|
|
@@ -6012,12 +6006,12 @@ const Oa = /* @__PURE__ */ $(wa, [["render", Ra], ["__scopeId", "data-v-d37ef215
|
|
|
6012
6006
|
);
|
|
6013
6007
|
this.selectGalleryItem(r);
|
|
6014
6008
|
} catch (r) {
|
|
6015
|
-
|
|
6009
|
+
le(r);
|
|
6016
6010
|
}
|
|
6017
6011
|
},
|
|
6018
6012
|
methods: {
|
|
6019
|
-
...
|
|
6020
|
-
loadPrices:
|
|
6013
|
+
...Z({
|
|
6014
|
+
loadPrices: P.LOAD_PRICES
|
|
6021
6015
|
}),
|
|
6022
6016
|
async loadTemplateGallery() {
|
|
6023
6017
|
this.isLoading = !0;
|
|
@@ -6041,7 +6035,7 @@ const Oa = /* @__PURE__ */ $(wa, [["render", Ra], ["__scopeId", "data-v-d37ef215
|
|
|
6041
6035
|
[]
|
|
6042
6036
|
);
|
|
6043
6037
|
} catch (t) {
|
|
6044
|
-
|
|
6038
|
+
le(t);
|
|
6045
6039
|
} finally {
|
|
6046
6040
|
this.isLoading = !1;
|
|
6047
6041
|
}
|
|
@@ -6054,7 +6048,7 @@ const Oa = /* @__PURE__ */ $(wa, [["render", Ra], ["__scopeId", "data-v-d37ef215
|
|
|
6054
6048
|
isVisibleApp: !0,
|
|
6055
6049
|
includePurchaseInfo: !0
|
|
6056
6050
|
}, n = await this.fetchGallery(t), s = (o = n == null ? void 0 : n[0]) == null ? void 0 : o.templateId;
|
|
6057
|
-
return s ? (
|
|
6051
|
+
return s ? (Dt(s), new St(s)) : null;
|
|
6058
6052
|
},
|
|
6059
6053
|
onUseTemplate(e) {
|
|
6060
6054
|
if (!e) throw new Error("Could not find template");
|
|
@@ -6071,12 +6065,10 @@ const Oa = /* @__PURE__ */ $(wa, [["render", Ra], ["__scopeId", "data-v-d37ef215
|
|
|
6071
6065
|
}
|
|
6072
6066
|
const n = {
|
|
6073
6067
|
cling: "/img/app/icon-blue-text-250x250.png",
|
|
6074
|
-
docspo: "/img/docspo/icons/apple-touch-icon-180x180.png"
|
|
6075
|
-
fortnoxSe: "/img/fortnox/apple-touch-icon-180x180.png",
|
|
6076
|
-
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
6068
|
+
docspo: "/img/docspo/icons/apple-touch-icon-180x180.png"
|
|
6077
6069
|
};
|
|
6078
6070
|
this.$modal.show(
|
|
6079
|
-
|
|
6071
|
+
za,
|
|
6080
6072
|
{
|
|
6081
6073
|
template: e,
|
|
6082
6074
|
fetchGallery: this.fetchGallery,
|
|
@@ -6089,7 +6081,7 @@ const Oa = /* @__PURE__ */ $(wa, [["render", Ra], ["__scopeId", "data-v-d37ef215
|
|
|
6089
6081
|
// Only show author if enabled)
|
|
6090
6082
|
author: {
|
|
6091
6083
|
name: this.$t("_common:brand.name"),
|
|
6092
|
-
avatar: n[
|
|
6084
|
+
avatar: n[K.brand],
|
|
6093
6085
|
templatesCount: this.templateGalleryItems.length
|
|
6094
6086
|
}
|
|
6095
6087
|
} : {}
|
|
@@ -6121,8 +6113,8 @@ const Oa = /* @__PURE__ */ $(wa, [["render", Ra], ["__scopeId", "data-v-d37ef215
|
|
|
6121
6113
|
}
|
|
6122
6114
|
}
|
|
6123
6115
|
};
|
|
6124
|
-
function
|
|
6125
|
-
return
|
|
6116
|
+
function Oa(e, t, n, s, i, o) {
|
|
6117
|
+
return A(e.$slots, "default", {
|
|
6126
6118
|
galleryItems: o.galleryItems,
|
|
6127
6119
|
categories: o.categories,
|
|
6128
6120
|
activeCategory: i.activeCategory,
|
|
@@ -6130,7 +6122,7 @@ function Ua(e, t, n, s, i, o) {
|
|
|
6130
6122
|
selectGalleryItem: o.selectGalleryItem
|
|
6131
6123
|
});
|
|
6132
6124
|
}
|
|
6133
|
-
const
|
|
6125
|
+
const Ha = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ua = {
|
|
6134
6126
|
i18nOptions: {
|
|
6135
6127
|
namespaces: "TemplateSelector",
|
|
6136
6128
|
messages: {
|
|
@@ -6174,16 +6166,16 @@ const qa = /* @__PURE__ */ $(Ha, [["render", Ua]]), Ga = {
|
|
|
6174
6166
|
},
|
|
6175
6167
|
name: "TemplateSelector",
|
|
6176
6168
|
components: {
|
|
6177
|
-
HorizontalScroll:
|
|
6178
|
-
DocumentIcon:
|
|
6179
|
-
DocumentRecent:
|
|
6180
|
-
GalleryLogic:
|
|
6181
|
-
IsPremiumPreStep:
|
|
6182
|
-
CDropdown:
|
|
6183
|
-
CDropdownItem:
|
|
6184
|
-
TemplateActionsDropdown:
|
|
6185
|
-
},
|
|
6186
|
-
mixins: [
|
|
6169
|
+
HorizontalScroll: ya,
|
|
6170
|
+
DocumentIcon: ca,
|
|
6171
|
+
DocumentRecent: na,
|
|
6172
|
+
GalleryLogic: Ha,
|
|
6173
|
+
IsPremiumPreStep: X,
|
|
6174
|
+
CDropdown: re,
|
|
6175
|
+
CDropdownItem: q,
|
|
6176
|
+
TemplateActionsDropdown: js
|
|
6177
|
+
},
|
|
6178
|
+
mixins: [Q],
|
|
6187
6179
|
props: {
|
|
6188
6180
|
// Used for creating documents form project/client views
|
|
6189
6181
|
projectId: {
|
|
@@ -6238,7 +6230,7 @@ const qa = /* @__PURE__ */ $(Ha, [["render", Ua]]), Ga = {
|
|
|
6238
6230
|
};
|
|
6239
6231
|
},
|
|
6240
6232
|
computed: {
|
|
6241
|
-
...
|
|
6233
|
+
...R({
|
|
6242
6234
|
canFeature: "application/feature",
|
|
6243
6235
|
templateById: "templates/byId",
|
|
6244
6236
|
isFetchingTemplates: "templates/isFetching",
|
|
@@ -6284,11 +6276,11 @@ const qa = /* @__PURE__ */ $(Ha, [["render", Ua]]), Ga = {
|
|
|
6284
6276
|
this.loadTemplates();
|
|
6285
6277
|
},
|
|
6286
6278
|
methods: {
|
|
6287
|
-
...
|
|
6288
|
-
loadTemplatesAction:
|
|
6289
|
-
loadTemplate:
|
|
6290
|
-
createTemplate:
|
|
6291
|
-
removeTemplate:
|
|
6279
|
+
...Z({
|
|
6280
|
+
loadTemplatesAction: P.LOAD_TEMPLATES,
|
|
6281
|
+
loadTemplate: P.LOAD_TEMPLATE,
|
|
6282
|
+
createTemplate: P.DO_CREATE_TEMPLATE,
|
|
6283
|
+
removeTemplate: P.REMOVE_TEMPLATE
|
|
6292
6284
|
}),
|
|
6293
6285
|
loadTemplates() {
|
|
6294
6286
|
const e = {};
|
|
@@ -6313,7 +6305,7 @@ const qa = /* @__PURE__ */ $(Ha, [["render", Ua]]), Ga = {
|
|
|
6313
6305
|
]);
|
|
6314
6306
|
return await this.createTemplate({ body: n }), !0;
|
|
6315
6307
|
} catch (t) {
|
|
6316
|
-
|
|
6308
|
+
le(t);
|
|
6317
6309
|
}
|
|
6318
6310
|
return !1;
|
|
6319
6311
|
},
|
|
@@ -6337,57 +6329,57 @@ const qa = /* @__PURE__ */ $(Ha, [["render", Ua]]), Ga = {
|
|
|
6337
6329
|
);
|
|
6338
6330
|
},
|
|
6339
6331
|
async fetchGallery(e = {}) {
|
|
6340
|
-
const { data: t } = await
|
|
6332
|
+
const { data: t } = await It.get(e);
|
|
6341
6333
|
return t;
|
|
6342
6334
|
},
|
|
6343
6335
|
canUseTemplate(e) {
|
|
6344
6336
|
return e.doConsumeDocumentQuota ? this.canFeature("useDocTemplate") : !0;
|
|
6345
6337
|
}
|
|
6346
6338
|
}
|
|
6347
|
-
},
|
|
6339
|
+
}, qa = { class: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, Ga = { style: { width: "100%", "padding-bottom": "5em" } }, Na = { class: "section-title" }, Wa = { class: "section-subtitle" }, ja = {
|
|
6348
6340
|
key: 0,
|
|
6349
6341
|
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"
|
|
6350
|
-
},
|
|
6342
|
+
}, Za = {
|
|
6351
6343
|
key: 1,
|
|
6352
6344
|
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"
|
|
6353
|
-
},
|
|
6345
|
+
}, Ka = { style: { width: "100%", "padding-bottom": "5em" } }, Qa = { class: "section-title w-full" }, Ya = { class: "flex items-center justify-between" }, Ja = ["innerHTML"], Xa = {
|
|
6354
6346
|
key: 0,
|
|
6355
6347
|
class: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg"
|
|
6356
|
-
},
|
|
6348
|
+
}, el = ["textContent"], tl = {
|
|
6357
6349
|
class: "section-title",
|
|
6358
6350
|
style: { flex: "1 1 auto", "padding-bottom": "0.5em" }
|
|
6359
|
-
},
|
|
6360
|
-
function
|
|
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 =
|
|
6362
|
-
return l(), p("div",
|
|
6351
|
+
}, nl = { class: "section-subtitle" };
|
|
6352
|
+
function il(e, t, n, s, i, o) {
|
|
6353
|
+
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 = ie("tooltip");
|
|
6354
|
+
return l(), p("div", qa, [
|
|
6363
6355
|
a("div", {
|
|
6364
|
-
class:
|
|
6356
|
+
class: V([{ small: e.mq === "sm" }, "font-inter form-start main mx-auto max-w-5xl"])
|
|
6365
6357
|
}, [
|
|
6366
|
-
|
|
6367
|
-
a("div",
|
|
6368
|
-
a("div",
|
|
6358
|
+
A(e.$slots, "header", {}, void 0, !0),
|
|
6359
|
+
a("div", Ga, [
|
|
6360
|
+
a("div", Na, [
|
|
6369
6361
|
a("div", null, d(e.$t("myTemplates")), 1),
|
|
6370
|
-
a("div",
|
|
6362
|
+
a("div", Wa, d(e.$t("myTemplatesSubTitle")), 1)
|
|
6371
6363
|
]),
|
|
6372
6364
|
c(k, { feature: "useDocTemplate" }, {
|
|
6373
|
-
default: u(({ onClick:
|
|
6374
|
-
(l(), C(
|
|
6375
|
-
class:
|
|
6376
|
-
onExpand: t[1] || (t[1] = (
|
|
6365
|
+
default: u(({ onClick: $ }) => [
|
|
6366
|
+
(l(), C(W(i.isExpanded ? "div" : "HorizontalScroll"), {
|
|
6367
|
+
class: V([{ "is-expanded": i.isExpanded }, "template-list"]),
|
|
6368
|
+
onExpand: t[1] || (t[1] = (S) => i.isExpanded = !0)
|
|
6377
6369
|
}, {
|
|
6378
6370
|
default: u(() => [
|
|
6379
|
-
(l(!0), p(
|
|
6380
|
-
key:
|
|
6381
|
-
"is-add":
|
|
6382
|
-
"is-placeholder":
|
|
6383
|
-
media:
|
|
6384
|
-
thumbnail:
|
|
6385
|
-
name:
|
|
6371
|
+
(l(!0), p(I, null, E(o.myTemplates, (S) => (l(), C(b, {
|
|
6372
|
+
key: S.id,
|
|
6373
|
+
"is-add": S.id === "empty",
|
|
6374
|
+
"is-placeholder": S.placeholder,
|
|
6375
|
+
media: S.defaultMedia || o.fallbackMedia,
|
|
6376
|
+
thumbnail: S.thumbnailUrl,
|
|
6377
|
+
name: S.name,
|
|
6386
6378
|
class: "template-item",
|
|
6387
|
-
onTriggerOpenTemplate: (
|
|
6379
|
+
onTriggerOpenTemplate: (U) => S.placeholder ? null : o.canUseTemplate(S) ? o.select({ templateId: S.id }) : $()
|
|
6388
6380
|
}, {
|
|
6389
6381
|
badge: u(() => [
|
|
6390
|
-
o.canUseTemplate(
|
|
6382
|
+
o.canUseTemplate(S) ? !S.doConsumeDocumentQuota && !S.placeholder ? (l(), p("div", Za, d(e.$t("_common:free")), 1)) : v("", !0) : (l(), p("div", ja, [
|
|
6391
6383
|
c(r, {
|
|
6392
6384
|
type: "lock",
|
|
6393
6385
|
size: "12",
|
|
@@ -6397,24 +6389,24 @@ function sl(e, t, n, s, i, o) {
|
|
|
6397
6389
|
]))
|
|
6398
6390
|
]),
|
|
6399
6391
|
default: u(() => [
|
|
6400
|
-
|
|
6392
|
+
S.onModify === "create" && !S.doConsumeDocumentQuota ? G((l(), C(g, {
|
|
6401
6393
|
key: 0,
|
|
6402
6394
|
icon: "info",
|
|
6403
6395
|
type: "none",
|
|
6404
6396
|
pattern: "tertiary",
|
|
6405
6397
|
size: "small",
|
|
6406
6398
|
style: { top: "-8px", right: "-4px" },
|
|
6407
|
-
onClick: t[0] || (t[0] =
|
|
6399
|
+
onClick: t[0] || (t[0] = j(() => {
|
|
6408
6400
|
}, ["stop"]))
|
|
6409
6401
|
}, null, 512)), [
|
|
6410
6402
|
[x, {
|
|
6411
6403
|
content: e.$t("icon.freeTooltip"),
|
|
6412
6404
|
placement: "bottom"
|
|
6413
6405
|
}]
|
|
6414
|
-
]) :
|
|
6406
|
+
]) : G((l(), C(h, {
|
|
6415
6407
|
key: 1,
|
|
6416
6408
|
"append-to-body": "",
|
|
6417
|
-
template:
|
|
6409
|
+
template: S,
|
|
6418
6410
|
onEdit: n.onEditTemplate,
|
|
6419
6411
|
onRename: o.openTemplateFormModal,
|
|
6420
6412
|
onRemove: e.removeTemplate
|
|
@@ -6440,19 +6432,19 @@ function sl(e, t, n, s, i, o) {
|
|
|
6440
6432
|
"gallery-category": n.galleryCategory
|
|
6441
6433
|
}, {
|
|
6442
6434
|
default: u(({
|
|
6443
|
-
galleryItems:
|
|
6444
|
-
categories:
|
|
6445
|
-
activeCategory:
|
|
6446
|
-
selectCategory:
|
|
6447
|
-
selectGalleryItem:
|
|
6435
|
+
galleryItems: $,
|
|
6436
|
+
categories: S,
|
|
6437
|
+
activeCategory: U,
|
|
6438
|
+
selectCategory: B,
|
|
6439
|
+
selectGalleryItem: se
|
|
6448
6440
|
}) => [
|
|
6449
|
-
a("div",
|
|
6450
|
-
a("div",
|
|
6451
|
-
a("div",
|
|
6441
|
+
a("div", Ka, [
|
|
6442
|
+
a("div", Qa, [
|
|
6443
|
+
a("div", Ya, [
|
|
6452
6444
|
a("div", null, d(e.$t("gallery")), 1),
|
|
6453
6445
|
c(T, {
|
|
6454
6446
|
style: { "margin-left": "calc(0.5 * var(--rem))" },
|
|
6455
|
-
onClick: t[2] || (t[2] =
|
|
6447
|
+
onClick: t[2] || (t[2] = j(() => {
|
|
6456
6448
|
}, ["stop"]))
|
|
6457
6449
|
}, {
|
|
6458
6450
|
trigger: u(() => [
|
|
@@ -6463,19 +6455,19 @@ function sl(e, t, n, s, i, o) {
|
|
|
6463
6455
|
"icon-right": "chevron-down"
|
|
6464
6456
|
}, {
|
|
6465
6457
|
default: u(() => [
|
|
6466
|
-
_(d(
|
|
6458
|
+
_(d(U ? U.label : ""), 1)
|
|
6467
6459
|
]),
|
|
6468
6460
|
_: 2
|
|
6469
6461
|
}, 1024)
|
|
6470
6462
|
]),
|
|
6471
6463
|
default: u(() => [
|
|
6472
|
-
(l(!0), p(
|
|
6473
|
-
key:
|
|
6474
|
-
"icon-right":
|
|
6475
|
-
onClick: (
|
|
6464
|
+
(l(!0), p(I, null, E(S, (L) => (l(), C(w, {
|
|
6465
|
+
key: L.key,
|
|
6466
|
+
"icon-right": U && U.key === L.key ? "check" : "",
|
|
6467
|
+
onClick: (ce) => B(L)
|
|
6476
6468
|
}, {
|
|
6477
6469
|
default: u(() => [
|
|
6478
|
-
_(d(
|
|
6470
|
+
_(d(L.label), 1)
|
|
6479
6471
|
]),
|
|
6480
6472
|
_: 2
|
|
6481
6473
|
}, 1032, ["icon-right", "onClick"]))), 128))
|
|
@@ -6486,29 +6478,29 @@ function sl(e, t, n, s, i, o) {
|
|
|
6486
6478
|
a("div", {
|
|
6487
6479
|
class: "section-subtitle",
|
|
6488
6480
|
innerHTML: e.$t("gallerySubTitle")
|
|
6489
|
-
}, null, 8,
|
|
6481
|
+
}, null, 8, Ja)
|
|
6490
6482
|
]),
|
|
6491
6483
|
c(D, { class: "template-list" }, {
|
|
6492
6484
|
default: u(() => [
|
|
6493
|
-
(l(!0), p(
|
|
6494
|
-
key:
|
|
6495
|
-
"is-placeholder":
|
|
6496
|
-
media: { type: "image", resourceUrl:
|
|
6497
|
-
name:
|
|
6485
|
+
(l(!0), p(I, null, E($, (L) => (l(), C(b, {
|
|
6486
|
+
key: L.id,
|
|
6487
|
+
"is-placeholder": L.placeholder,
|
|
6488
|
+
media: { type: "image", resourceUrl: L.backgroundUrl },
|
|
6489
|
+
name: L.name,
|
|
6498
6490
|
class: "template-item",
|
|
6499
|
-
onTriggerOpenTemplate: (
|
|
6491
|
+
onTriggerOpenTemplate: (ce) => L.placeholder ? null : se(L)
|
|
6500
6492
|
}, {
|
|
6501
6493
|
badge: u(() => [
|
|
6502
|
-
|
|
6503
|
-
|
|
6494
|
+
L.product ? (l(), p("div", Xa, [
|
|
6495
|
+
L.product.isPurchased ? (l(), C(r, {
|
|
6504
6496
|
key: 0,
|
|
6505
6497
|
type: "check",
|
|
6506
6498
|
size: "14",
|
|
6507
6499
|
"stroke-width": "3"
|
|
6508
6500
|
})) : (l(), p("div", {
|
|
6509
6501
|
key: 1,
|
|
6510
|
-
textContent: d(
|
|
6511
|
-
}, null, 8,
|
|
6502
|
+
textContent: d(L.product.price)
|
|
6503
|
+
}, null, 8, el))
|
|
6512
6504
|
])) : v("", !0)
|
|
6513
6505
|
]),
|
|
6514
6506
|
_: 2
|
|
@@ -6526,9 +6518,9 @@ function sl(e, t, n, s, i, o) {
|
|
|
6526
6518
|
onSaveTemplate: o.openTemplateFormModal
|
|
6527
6519
|
}, {
|
|
6528
6520
|
default: u(() => [
|
|
6529
|
-
a("div",
|
|
6521
|
+
a("div", tl, [
|
|
6530
6522
|
a("div", null, d(e.$t("recent")), 1),
|
|
6531
|
-
a("div",
|
|
6523
|
+
a("div", nl, d(e.$t("recentSubTitle")), 1)
|
|
6532
6524
|
])
|
|
6533
6525
|
]),
|
|
6534
6526
|
_: 1
|
|
@@ -6536,12 +6528,12 @@ function sl(e, t, n, s, i, o) {
|
|
|
6536
6528
|
], 2)
|
|
6537
6529
|
]);
|
|
6538
6530
|
}
|
|
6539
|
-
const
|
|
6531
|
+
const ol = /* @__PURE__ */ F(Ua, [["render", il], ["__scopeId", "data-v-825ca28b"]]);
|
|
6540
6532
|
var he, Be;
|
|
6541
|
-
function
|
|
6533
|
+
function sl() {
|
|
6542
6534
|
if (Be) return he;
|
|
6543
6535
|
Be = 1;
|
|
6544
|
-
var e =
|
|
6536
|
+
var e = Ft(), t = Lt(), n = Vt();
|
|
6545
6537
|
function s(i, o, r) {
|
|
6546
6538
|
for (var g = -1, h = o.length, b = {}; ++g < h; ) {
|
|
6547
6539
|
var k = o[g], w = e(i, k);
|
|
@@ -6552,10 +6544,10 @@ function ll() {
|
|
|
6552
6544
|
return he = s, he;
|
|
6553
6545
|
}
|
|
6554
6546
|
var fe, Me;
|
|
6555
|
-
function
|
|
6547
|
+
function al() {
|
|
6556
6548
|
if (Me) return fe;
|
|
6557
6549
|
Me = 1;
|
|
6558
|
-
var e =
|
|
6550
|
+
var e = sl(), t = Bt();
|
|
6559
6551
|
function n(s, i) {
|
|
6560
6552
|
return e(s, i, function(o, r) {
|
|
6561
6553
|
return t(s, r);
|
|
@@ -6564,16 +6556,16 @@ function rl() {
|
|
|
6564
6556
|
return fe = n, fe;
|
|
6565
6557
|
}
|
|
6566
6558
|
var ge, Pe;
|
|
6567
|
-
function
|
|
6559
|
+
function ll() {
|
|
6568
6560
|
if (Pe) return ge;
|
|
6569
6561
|
Pe = 1;
|
|
6570
|
-
var e =
|
|
6562
|
+
var e = al(), t = Kt(), n = t(function(s, i) {
|
|
6571
6563
|
return s == null ? {} : e(s, i);
|
|
6572
6564
|
});
|
|
6573
6565
|
return ge = n, ge;
|
|
6574
6566
|
}
|
|
6575
|
-
var
|
|
6576
|
-
const
|
|
6567
|
+
var rl = ll();
|
|
6568
|
+
const dl = /* @__PURE__ */ He(rl), cl = {
|
|
6577
6569
|
name: "DocForm",
|
|
6578
6570
|
i18nOptions: {
|
|
6579
6571
|
namespaces: "widgetDocForm",
|
|
@@ -6587,9 +6579,9 @@ const ul = /* @__PURE__ */ He(cl), ml = {
|
|
|
6587
6579
|
}
|
|
6588
6580
|
},
|
|
6589
6581
|
components: {
|
|
6590
|
-
TemplateSelector:
|
|
6591
|
-
DocumentForm:
|
|
6592
|
-
PostSend:
|
|
6582
|
+
TemplateSelector: ol,
|
|
6583
|
+
DocumentForm: Ws,
|
|
6584
|
+
PostSend: dn
|
|
6593
6585
|
},
|
|
6594
6586
|
provide() {
|
|
6595
6587
|
return {
|
|
@@ -6656,7 +6648,7 @@ const ul = /* @__PURE__ */ He(cl), ml = {
|
|
|
6656
6648
|
};
|
|
6657
6649
|
},
|
|
6658
6650
|
computed: {
|
|
6659
|
-
...
|
|
6651
|
+
...R({
|
|
6660
6652
|
company: "application/company",
|
|
6661
6653
|
feature: "application/feature",
|
|
6662
6654
|
can: "application/can",
|
|
@@ -6689,13 +6681,13 @@ const ul = /* @__PURE__ */ He(cl), ml = {
|
|
|
6689
6681
|
(!this.rawDoc || (e = this.rawDoc) != null && e.__isNew) && (this.view = "templateSelect");
|
|
6690
6682
|
},
|
|
6691
6683
|
methods: {
|
|
6692
|
-
...
|
|
6693
|
-
removeFormKeyValue:
|
|
6694
|
-
loadDocumentForm:
|
|
6695
|
-
duplicateDocumentForm:
|
|
6696
|
-
saveDocument:
|
|
6697
|
-
loadCompanyUser:
|
|
6698
|
-
saveTemplate:
|
|
6684
|
+
...Z({
|
|
6685
|
+
removeFormKeyValue: P.REMOVE_FORM_KEY_VALUE,
|
|
6686
|
+
loadDocumentForm: P.LOAD_DOCUMENT2_FORM,
|
|
6687
|
+
duplicateDocumentForm: P.LOAD_DUPLICATE_DOCUMENT2_FORM,
|
|
6688
|
+
saveDocument: P.SAVE_DYNDOC_FORM,
|
|
6689
|
+
loadCompanyUser: P.LOAD_COMPANY_USER,
|
|
6690
|
+
saveTemplate: P.SAVE_TEMPLATE_FORM
|
|
6699
6691
|
}),
|
|
6700
6692
|
async initDoc() {
|
|
6701
6693
|
if (!this.rawDoc) throw new Error("Missing initiated form document");
|
|
@@ -6708,7 +6700,7 @@ const ul = /* @__PURE__ */ He(cl), ml = {
|
|
|
6708
6700
|
},
|
|
6709
6701
|
async onTemplateSelect({ templateId: e, documentId: t, formData: n }) {
|
|
6710
6702
|
var i;
|
|
6711
|
-
const s =
|
|
6703
|
+
const s = dl({ ...this.rawDoc }, [
|
|
6712
6704
|
"__tempId",
|
|
6713
6705
|
"externalReferences",
|
|
6714
6706
|
"subscriberCompanyUserIds",
|
|
@@ -6720,7 +6712,7 @@ const ul = /* @__PURE__ */ He(cl), ml = {
|
|
|
6720
6712
|
_formData: s
|
|
6721
6713
|
}) : await this.loadDocumentForm({
|
|
6722
6714
|
templateId: e,
|
|
6723
|
-
formData: n ?
|
|
6715
|
+
formData: n ? Mt(n, s) : null,
|
|
6724
6716
|
_formData: s
|
|
6725
6717
|
}), (i = s == null ? void 0 : s.data) != null && i.name && this.setDocValue({ key: "data.name", value: s.data.name }), await this.initDoc(), this.view = "editor";
|
|
6726
6718
|
},
|
|
@@ -6757,15 +6749,15 @@ const ul = /* @__PURE__ */ He(cl), ml = {
|
|
|
6757
6749
|
return !t.sms && !t.email;
|
|
6758
6750
|
}
|
|
6759
6751
|
}
|
|
6760
|
-
},
|
|
6752
|
+
}, ul = { class: "flex h-full w-full flex-col" }, ml = {
|
|
6761
6753
|
key: 0,
|
|
6762
6754
|
class: "flex h-full w-full flex-col"
|
|
6763
|
-
},
|
|
6764
|
-
function
|
|
6755
|
+
}, pl = { class: "relative flex h-16 items-center justify-center border-b border-gray-200" };
|
|
6756
|
+
function hl(e, t, n, s, i, o) {
|
|
6765
6757
|
const r = m("CButton"), g = m("TemplateSelector"), h = m("DocumentForm"), b = m("PostSend");
|
|
6766
|
-
return l(), p("div",
|
|
6767
|
-
i.view === "templateSelect" ? (l(), p("div",
|
|
6768
|
-
a("div",
|
|
6758
|
+
return l(), p("div", ul, [
|
|
6759
|
+
i.view === "templateSelect" ? (l(), p("div", ml, [
|
|
6760
|
+
a("div", pl, [
|
|
6769
6761
|
n.closeFunc ? (l(), C(r, {
|
|
6770
6762
|
key: 0,
|
|
6771
6763
|
icon: "x",
|
|
@@ -6827,7 +6819,7 @@ function gl(e, t, n, s, i, o) {
|
|
|
6827
6819
|
}, null, 8, ["document", "on-send-func", "on-close-func"])) : v("", !0)
|
|
6828
6820
|
]);
|
|
6829
6821
|
}
|
|
6830
|
-
const
|
|
6822
|
+
const Ol = /* @__PURE__ */ F(cl, [["render", hl], ["__scopeId", "data-v-4c6b6a6b"]]);
|
|
6831
6823
|
export {
|
|
6832
|
-
|
|
6824
|
+
Ol as default
|
|
6833
6825
|
};
|